用idea寫ssm項目,基於之前一直在用spring boot 對於idea如何運行ssm花費了一番功夫
啟動Tom act一直在報404 我搜了網上各種解決辦法都不行,花費一天多的時間解決不了
就是在pom中添加下面代碼
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
<include>**/*.ini</include>
</includes>
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
idea不配置各種文件,自己識別不了 需要給指定
配置tomcat以及jdk
首先配置jdk



jdk配置完成 配置tomcat






