mirror of
https://gitee.com/coder-xiaomo/java-note
synced 2025-01-25 18:50:26 +08:00
2022.01.20 1449
This commit is contained in:
parent
61d40d75ef
commit
43566cbf1c
@ -446,6 +446,8 @@ pom.xml # Maven依赖
|
||||
|
||||
#### 创建Mavenweb项目
|
||||
|
||||
<span id="创建Mavenweb项目"></span>
|
||||
|
||||
> 有两种方式
|
||||
>
|
||||
> 1. 创建项目时,选择Maven,勾上Create from archtype
|
||||
@ -577,7 +579,31 @@ src/main/resources/applicationContext.xml
|
||||
|
||||
#### 创建SpringMVC Maven web项目
|
||||
|
||||
<span id="创建SpringMVC_Maven_web项目"></span>
|
||||
|
||||
![image-20220118002605490](张博凯的Java学习笔记.assets/image-20220118002605490.png)
|
||||
|
||||
![image-20220120143744218](张博凯的Java学习笔记.assets/image-20220120143744218.png)
|
||||
|
||||
|
||||
|
||||
##### Mavenweb配置
|
||||
|
||||
参照[创建Mavenweb项目](#创建Mavenweb项目),将项目配置为Mavenweb项目
|
||||
|
||||
|
||||
|
||||
##### 配置Tomcat服务器
|
||||
|
||||
> Tomcat官网:https://tomcat.apache.org/
|
||||
>
|
||||
> 下载:https://tomcat.apache.org/download-90.cgi
|
||||
>
|
||||
> ![image-20220120144746154](张博凯的Java学习笔记.assets/image-20220120144746154.png)
|
||||
>
|
||||
> 目录结构:
|
||||
>
|
||||
> ![image-20220120144935976](张博凯的Java学习笔记.assets/image-20220120144935976.png)
|
||||
|
||||
|
||||
|
||||
@ -3971,6 +3997,8 @@ public class UserService {
|
||||
|
||||
> 之前创建的都是Maven普通工程
|
||||
|
||||
[创建SpringMVC Maven web项目](#创建SpringMVC_Maven_web项目)
|
||||
|
||||
|
||||
|
||||
#### Thymeleaf
|
||||
|
Loading…
x
Reference in New Issue
Block a user