Examination_System
Examination_System copied to clipboard
在IDEA中可以运行了!
参考了之前的issues,总结如下:
- 更改pom.xml中的resources,删除原有的改成下面的
<resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> <include>**/*.yml</include> </includes> <filtering>false</filtering> </resource> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> <include>**/*.yml</include> </includes> <filtering>false</filtering> </resource> </resources> - 修改login.jsp中的表单action中的/login为login
<form class="form-horizontal" role="form" action="login" id="from1" method="post"> - 更改web.xml中的contextConfigLocation为以下内容
<context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:spring/applicationContext-*.xml</param-value> </context-param> - 配置tomcat时要将Application context改成
/
增加:1、tomcat在8.5.76这个版本测试可以,8.5.68这个版本不行。 2、高版本的mysql,要注意修改链接参数为jdbc.url = jdbc:mysql://localhost:3306/examination_system?useSSL=false 3.一定要用”添加maven项目”添加,否则有可能不成功
赞!!!