Bläddra i källkod

repository修改

yuchengwei 7 månader sedan
förälder
incheckning
dfe77e11e7

+ 1 - 2
src/main/java/com/qizhen/healsphere/Application.java

@@ -11,9 +11,8 @@ import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
 import org.springframework.data.neo4j.repository.config.EnableNeo4jRepositories;
 
 @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class,
-        JmxAutoConfiguration.class, ThymeleafAutoConfiguration.class },scanBasePackages = "com.qizhen.healsphere")
+        JmxAutoConfiguration.class, ThymeleafAutoConfiguration.class })
 @ConfigurationPropertiesScan
-@MapperScan("com.qizhen.healsphere.repository.mapper")
 @EnableNeo4jRepositories
 public class Application {
 

+ 12 - 55
src/main/resources/application.yml

@@ -6,66 +6,23 @@ server:
 swagger:
   enable: true
 
-
 spring:
   datasource:
-#    dynamic:
-#      primary: neo4j
-#      # 数据库配置
-#      datasource:
-#        neo4j:
-#          driver-class-name: org.neo4j.jdbc.Driver
-#          url: jdbc:neo4j:http://173.18.12.194:7474
-#          username: neo4j
-#          password: 12345678
-#        mysql:
-#          driver-class-name: com.mysql.cj.jdbc.Driver
-#          url: jdbc:mysql://173.18.12.194:3306/sys-ltkg?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false
-#          username: root
-#          password: dsYun8!@#
-    driver-class-name: com.mysql.jdbc.Driver
-    url: jdbc:mysql://173.18.12.194:3306/sys-ltkg?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false
-    username: root
-    password: dsYun8!@#
+    hikari:
+      jdbc-url: jdbc:mysql://173.18.12.194:3306/sys-ltkg?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false
+      driver-class-name: com.mysql.cj.jdbc.Driver
+      username: root
+      password: dsYun8!@#
   neo4j:
-    uri: bolt://172.16.8.59:7687
+#    uri: bolt://172.16.8.59:7687
+#    authentication:
+#      username: neo4j
+#      password: 1Qaz@wsx
+#    uri: bolt://173.18.12.206:7687
+    uri: bolt://173.18.12.194:7687
     authentication:
       username: neo4j
-      password: 1Qaz@wsx
-
-#mybatis
-mybatis:
-  type-aliases-package: com.qizhen.healsphere.repository.mapper.entity
-  mapper-locations: classpath:mapper/*.xml
-
-#mybatis-plus
-mybatis-plus:
-  mapper-locations: classpath:/mapper/*Mapper.xml
-  #实体扫描,多个package用逗号或者分号分隔
-  typeAliasesPackage: com.qizhen.healsphererepository.mapper.entity
-  global-config:
-    #刷新mapper 调试神器
-    db-config:
-      #主键类型  0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
-      id-type: id_worker
-      #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
-      field-strategy: not_empty
-      #驼峰下划线转换
-      column-underline: true
-      #数据库大写下划线转换
-      #capital-mode: true
-      #刷新mapper 调试神器
-      refresh-mapper: true
-      #逻辑删除配置
-      logic-delete-value: 0
-      logic-not-delete-value: 1
-      #自定义填充策略接口实现
-      #meta-object-handler: com.baomidou.springboot.xxx
-      #自定义SQL注入器
-      #sql-injector: com.baomidou.springboot.xxx
-  configuration:
-    map-underscore-to-camel-case: true
-    cache-enabled: false
+      password: 12345678
 
 springfox:
   documentation: