Skip to content
This repository has been archived by the owner on Nov 13, 2020. It is now read-only.

Commit

Permalink
修复了一个严重的 Bug
Browse files Browse the repository at this point in the history
1. 将显式数据库连接重构为 Tomcat 内置连接池;
2. 将连接池数据源配置迁移到 META-INF/context.xml。
3. 更新了 pom.xml ,指定 WAR 包名称,方便部署至 Apache Tomcat
  • Loading branch information
Dragon1573 committed Nov 11, 2020
1 parent feaf6c6 commit 6b10fb9
Show file tree
Hide file tree
Showing 10 changed files with 166 additions and 141 deletions.
11 changes: 11 additions & 0 deletions .idea/dataSources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions .idea/runConfigurations/Tomcat_9_0_36__Local_.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warName>JSP_Design</warName>
</configuration>
<version>3.2.2</version>
</plugin>
<plugin>
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/entities/UserInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* 存储用户信息,用于登陆
*
* @author Drogon1573
* @date 2019/06/29
*/
public class UserInfo implements Serializable {
private static final long serialVersionUID = 4982980163500402507L;
Expand All @@ -25,7 +24,8 @@ public String getUsername() {
/**
* 获取用户名
*
* @param username - 用户名
* @param username
* - 用户名
*/
public void setUsername(String username) {
this.username = username;
Expand All @@ -43,7 +43,8 @@ public boolean isVerified() {
/**
* 设置登陆状态
*
* @param verified - 登陆状态
* @param verified
* - 登陆状态
*/
public void setVerified(boolean verified) {
this.verified = verified;
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/servlets/ResetVerify.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package servlets;

import java.io.IOException;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
Expand All @@ -13,7 +12,6 @@

/**
* @author Dragon1573
* @date 2019/7/12
*/
@WebServlet(name = "ResetVerify", urlPatterns = {"/forget"})
public class ResetVerify extends HttpServlet {
Expand Down
Loading

0 comments on commit 6b10fb9

Please sign in to comment.