Commit d89a6591 authored by zhangc's avatar zhangc

修改gateway配置文件

parent 3dbf6660
...@@ -3,6 +3,7 @@ package com.jz.dm; ...@@ -3,6 +3,7 @@ package com.jz.dm;
import org.mybatis.spring.annotation.MapperScan; import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.EnableTransactionManagement;
/** /**
...@@ -16,7 +17,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement; ...@@ -16,7 +17,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
* @Description: * @Description:
**/ **/
@SpringBootApplication @SpringBootApplication
//@ComponentScan(basePackages = {"com.jz"}) @ComponentScan(basePackages = {"com.jz"})
@MapperScan("com.jz.dm.mapper") @MapperScan("com.jz.dm.mapper")
@EnableTransactionManagement @EnableTransactionManagement
public class ApiGatewayApplication { public class ApiGatewayApplication {
......
...@@ -49,32 +49,3 @@ spring: ...@@ -49,32 +49,3 @@ spring:
filters: stat filters: stat
# ====================MybatisPlus==================== # ====================MybatisPlus====================
mybatis-plus:
# 如果是放在src/main/java目录下 classpath:/com/yourpackage/*/mapper/*Mapper.xml
# 如果是放在resource目录 classpath:/mapper/*Mapper.xml
mapper-locations: classpath*:com/frame/**/**.xml,classpath*:mapping/**/**.xml
#实体扫描,多个package用逗号或者分号分隔
typeAliasesPackage: com.frame.**.entity,com.frame.**.dto
global-config:
#刷新mapper 调试神器
db-config:
#主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
id-type: UUID
#字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
field-strategy: 2
#驼峰下划线转换
column-underline: false
#数据库大写下划线转换
# capital-mode: true
#逻辑删除配置
logic-delete-value: 1
logic-not-delete-value: 0
refresh: true
configuration:
#配置返回数据库(column下划线命名&&返回java实体是驼峰命名),自动匹配无需as(没开启这个,SQL需要写as: select user_id as userId)
map-underscore-to-camel-case: true
cache-enabled: false
#配置JdbcTypeForNull, oracle数据库必须配置
jdbc-type-for-null: 'null'
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
database-id: mysql
\ No newline at end of file
...@@ -19,19 +19,34 @@ spring: ...@@ -19,19 +19,34 @@ spring:
active: test #默认使用的配置文件 active: test #默认使用的配置文件
#MyBatis mybatis-plus:
#mybatis-plus: # 如果是放在src/main/java目录下 classpath:/com/yourpackage/*/mapper/*Mapper.xml
# mapper-locations: classpath:/mapper/**/*.xml # 如果是放在resource目录 classpath:/mapper/*Mapper.xml
# typeAliasesPackage: com.jz.common.entity mapper-locations: classpath*:com/frame/**/**.xml,classpath*:mapping/**/**.xml
# #type-handlers-package: com.btcpay.commons.typehandler #实体扫描,多个package用逗号或者分号分隔
# global-config: typeAliasesPackage: com.frame.**.entity,com.frame.**.dto
# id-type: 1 global-config:
# field-strategy: 2 #刷新mapper 调试神器
# db-column-underline: true db-config:
# refresh-mapper: true #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
# configuration: id-type: UUID
# map-underscore-to-camel-case: true #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
# cache-enabled: false field-strategy: 2
# #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #驼峰下划线转换
column-underline: false
#数据库大写下划线转换
# capital-mode: true
#逻辑删除配置
logic-delete-value: 1
logic-not-delete-value: 0
refresh: true
configuration:
#配置返回数据库(column下划线命名&&返回java实体是驼峰命名),自动匹配无需as(没开启这个,SQL需要写as: select user_id as userId)
map-underscore-to-camel-case: true
cache-enabled: false
#配置JdbcTypeForNull, oracle数据库必须配置
jdbc-type-for-null: 'null'
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
database-id: mysql
...@@ -56,3 +56,6 @@ spring: ...@@ -56,3 +56,6 @@ spring:
- 192.168.31.167:6382 - 192.168.31.167:6382
- 192.168.31.167:6383 - 192.168.31.167:6383
- 192.168.31.167:6384 - 192.168.31.167:6384
logging:
level:
com.jz.manage: debug
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment