tianyi 1 week ago
parent
commit
08a6e84f70

+ 3 - 1
.gitignore

@@ -11,4 +11,6 @@
 
 # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
 hs_err_pid*
-
+logs/*
+target/*
+.idea

+ 5 - 0
pom.xml

@@ -62,11 +62,15 @@
             <groupId>activation</groupId>
             <artifactId>email</artifactId>
             <version>20220902</version>
+            <scope>system</scope>
+            <systemPath>${project.basedir}/lib/activation.jar</systemPath>
         </dependency>
         <dependency>
             <groupId>mail</groupId>
             <artifactId>email</artifactId>
             <version>20220902</version>
+            <scope>system</scope>
+            <systemPath>${project.basedir}/lib/mail.jar</systemPath>
         </dependency>
         <dependency>
             <groupId>org.hibernate.validator</groupId>
@@ -443,6 +447,7 @@
                 <artifactId>spring-boot-maven-plugin</artifactId>
                 <configuration>
                     <fork>true</fork>
+                    <includeSystemScope>true</includeSystemScope>
                 </configuration>
             </plugin>
             <!-- 跳过单元测试 -->

+ 1 - 1
src/main/java/com/sqx/config/ShiroConfig.java

@@ -58,7 +58,7 @@ public class ShiroConfig {
         filterMap.put("/file/**", "anon");
         filterMap.put("/weixin/**", "anon");
         filterMap.put("/swagger-resources/**", "anon");
-        filterMap.put("/captcha.jpg", "anon");
+        filterMap.put("/captcha", "anon");
         filterMap.put("/chatSocket/**", "anon");
         filterMap.put("/websocket/**", "anon");
         filterMap.put("/search/**", "anon");

+ 1 - 1
src/main/java/com/sqx/modules/sys/controller/SysLoginController.java

@@ -37,7 +37,7 @@ public class SysLoginController extends AbstractController {
 	/**
 	 * 验证码
 	 */
-	@GetMapping("captcha.jpg")
+	@GetMapping("captcha")
 	public void captcha(HttpServletResponse response, String uuid)throws IOException {
 		response.setHeader("Cache-Control", "no-store, no-cache");
 		response.setContentType("image/jpeg");

+ 3 - 3
src/main/resources/application-prod.yml

@@ -3,9 +3,9 @@ spring:
         type: com.alibaba.druid.pool.DruidDataSource
         druid:
             driver-class-name: com.mysql.cj.jdbc.Driver
-            url: jdbc:mysql://127.0.0.1:3306/zhaopin6.2?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=CTT
-            username: root
-            password: 123456
+            url: jdbc:mysql://47.238.81.93:3306/yizhizan?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=CTT
+            username: yizhizan
+            password: XwNimML5Gh853cyG
             initial-size: 10
             max-active: 100
             min-idle: 10

+ 1 - 1
src/main/resources/static/swagger/index.yaml

@@ -17,7 +17,7 @@ securityDefinitions:
 
 #定义接口数据
 paths:
-  /captcha.jpg:
+  /captcha:
     get:
       tags:
         - 用户登录