用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
原文地址:https://www.cnblogs.com/NCL--/p/9233246.html
时间: 2024-11-09 10:09:14