shuhao 5 ngày trước cách đây
mục cha
commit
7863dd21ee

+ 4 - 0
src/main/java/com/xiesx/fastboot/core/fastjson/cfg/FastJsonCfg.java

@@ -20,6 +20,10 @@ import java.util.List;
 @EnableConfigurationProperties(FastJsonProperties.class)
 @EnableConfigurationProperties(FastJsonProperties.class)
 public class FastJsonCfg implements WebMvcConfigurer {
 public class FastJsonCfg implements WebMvcConfigurer {
 
 
+    public FastJsonCfg(){
+        System.out.println("FastJsonCfg init");
+    }
+
     public static SerializerFeature[] serializerFeatures = new SerializerFeature[] {
     public static SerializerFeature[] serializerFeatures = new SerializerFeature[] {
             // 字符类型字段如果为null,输出为"",而不是null
             // 字符类型字段如果为null,输出为"",而不是null
             SerializerFeature.WriteNullStringAsEmpty,
             SerializerFeature.WriteNullStringAsEmpty,

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

@@ -1,13 +1,8 @@
-spring:
-  datasource:
-    driver-class-name: com.mysql.cj.jdbc.Driver
-    url: jdbc:mysql://127.0.0.1:3306/xxxx?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&autoReconnect=true&useSSL=false&serverTimezone=Asia/Shanghai
-    username: xxx
-    password: xxx
+
 
 
 logging:
 logging:
   config: classpath:log4j2.xml
   config: classpath:log4j2.xml
- 
+
 fastboot:
 fastboot:
 # ======= 数据转换 =======
 # ======= 数据转换 =======
   fastjson:
   fastjson:
@@ -22,4 +17,4 @@ fastboot:
     include-paths:
     include-paths:
     - /api/**
     - /api/**
     exclude-paths:
     exclude-paths:
-    - /static/**
+    - /static/**