Procházet zdrojové kódy

添加测试环境

yq před 3 roky
rodič
revize
a3153ecd33

+ 1 - 1
src/main/java/com/usky/dxtop/common/utils/QRCodeUtil.java

@@ -160,7 +160,7 @@ public class QRCodeUtil {
 
     public static void main(String[] args) throws Exception {
         // 存放在二维码中的内容
-        String text = "我是小铭111";
+        String text = "https://wx.ewoogi.com/api/htAnalogData/count";
         // 嵌入二维码的图片路径
 //        String imgPath = "C:/Users/pc/Desktop/dog.jpg";
         // 生成的二维码的路径及名称

+ 20 - 0
src/main/java/com/usky/dxtop/controller/web/TestController.java

@@ -0,0 +1,20 @@
+package com.usky.dxtop.controller.web;
+
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @author yq
+ * @date 2021/8/23 13:51
+ */
+@RestController
+public class TestController {
+
+    @GetMapping("test")
+    public void test(@RequestParam String note){
+        System.out.println(note);
+    }
+
+}

+ 1 - 1
src/main/java/com/usky/dxtop/framework/config/SecurityConfig.java

@@ -99,7 +99,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
                 // 过滤请求
                 .authorizeRequests()
                 // 对于登录login 注册register 验证码captchaImage 允许匿名访问
-                .antMatchers("/login", "/register", "/captchaImage").anonymous()
+                .antMatchers("/login", "/register", "/captchaImage","/test").anonymous()
                 .antMatchers(
                         HttpMethod.GET,
                         "/",

+ 31 - 0
src/main/resources/application-prod.properties

@@ -62,3 +62,34 @@ spring.jackson.parser.allow-single-quotes=true
 # gzip
 server.compression.enabled=true
 server.compression.mime-types=application/javascript,text/css,application/json,application/xml,text/html,text/xml,text/plain
+
+# cache
+spring.redis.database=0
+spring.redis.host=120.55.70.156
+spring.redis.port=6379
+spring.redis.password=123456
+spring.redis.timeout=10000
+spring.redis.jedis.pool.max-active=1000
+spring.redis.jedis.pool.max-idle=300
+spring.redis.jedis.pool.min-idle=5
+spring.redis.jedis.pool.max-wait=1000
+
+# token
+token.header: Authorization
+token.secret: abcdefghijklmnopqrstuvwxyz
+token.expireTime: 30
+
+# xss
+xss.enabled: true
+xss.excludes: /system/notice
+xss.urlPatterns: /system/*,/monitor/*,/tool/*
+
+# project
+ruoyi.name: RuoYi
+ruoyi.version: 3.6.0
+ruoyi.copyrightYear: 2021
+ruoyi.demoEnabled: true
+ruoyi.addressEnabled: false
+ruoyi.captchaType: math
+
+