add readme note
This commit is contained in:
parent
c9c380e0ae
commit
81a3ca894f
44
README.MD
Normal file
44
README.MD
Normal file
@ -0,0 +1,44 @@
|
||||
> 看名称可以发现两个文件夹对应不同的项目类型!
|
||||
|
||||
annotation :为注解版本
|
||||
|
||||
|
||||
|
||||
xml :为web.xml配置版本(反而简单点)
|
||||
|
||||
> **注意Tomcat版本不要太高 不然可能要翻车~~**
|
||||
>
|
||||
> 推荐版本为: 8.x
|
||||
|
||||
|
||||
|
||||
Tomcat各个版本区别
|
||||
|
||||
[](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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user