IDEA创建Maven项目
[File]-->[new]-->[project..]
将项目变为web项目
[File]-->[Project Structure]-->[Modules]
路径:D:devjava-studySSMssm-demosrcmainwebapp
配置war包
[File]-->[Project structure]--[Artifacts]
tomcat配置
[Run]-->[Edit Configurations]-->"+"
新建index.html文件
spring
添加依赖包
<properties>
<spring.version>5.0.4.RELEASE</spring.version>
</properties>
<dependencies>
<!--spring start-->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-expression</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>