add readme note

This commit is contained in:
LittleBoy 2021-04-06 19:54:52 +08:00
parent c9c380e0ae
commit 81a3ca894f

44
README.MD Normal file
View File

@ -0,0 +1,44 @@
> 看名称可以发现两个文件夹对应不同的项目类型!
annotation :为注解版本
xml :为web.xml配置版本(反而简单点)
> **注意Tomcat版本不要太高 不然可能要翻车~~**
>
> 推荐版本为: 8.x
Tomcat各个版本区别
[![Tomcat各个版本区别](https://z3.ax1x.com/2021/04/06/c14ygs.png)](https://imgtu.com/i/c14ygs)
### 注意
注解办的web.xml需要注意web-app的版本哟
```xml
<?xml version="1.0" encoding="UTF-8" ?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1"
metadata-complete ="false">
<display-name>Archetype Created Web Application</display-name>
</web-app>
```
参考:
https://blog.csdn.net/fashion_man/article/details/82386511
https://blog.csdn.net/C860_zy/article/details/27964823