Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

在IDEA中可以运行了! #43

Open
chrysanthemum-boy opened this issue Nov 30, 2022 · 2 comments
Open

在IDEA中可以运行了! #43

chrysanthemum-boy opened this issue Nov 30, 2022 · 2 comments

Comments

@chrysanthemum-boy
Copy link

参考了之前的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
    <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改成 /
@ren120558115
Copy link

ren120558115 commented Mar 4, 2023

增加:1、tomcat在8.5.76这个版本测试可以,8.5.68这个版本不行。
2、高版本的mysql,要注意修改链接参数为jdbc.url = jdbc:mysql://localhost:3306/examination_system?useSSL=false
3.一定要用”添加maven项目”添加,否则有可能不成功

@By-Yexing
Copy link

赞!!!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@ren120558115 @chrysanthemum-boy @By-Yexing and others