Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dm_project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姚本章
dm_project
Commits
d89a6591
Commit
d89a6591
authored
Dec 03, 2020
by
zhangc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改gateway配置文件
parent
3dbf6660
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
44 deletions
+34
-44
ApiGatewayApplication.java
...ateway/src/main/java/com/jz/dm/ApiGatewayApplication.java
+2
-1
application-test.yml
jz-dm-apigateway/src/main/resources/application-test.yml
+0
-29
application.yml
jz-dm-apigateway/src/main/resources/application.yml
+29
-14
application-test.yml
jz-dm-mall/src/main/resources/application-test.yml
+3
-0
No files found.
jz-dm-apigateway/src/main/java/com/jz/dm/ApiGatewayApplication.java
View file @
d89a6591
...
...
@@ -3,6 +3,7 @@ package com.jz.dm;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
/**
...
...
@@ -16,7 +17,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
* @Description:
**/
@SpringBootApplication
//
@ComponentScan(basePackages = {"com.jz"})
@ComponentScan
(
basePackages
=
{
"com.jz"
})
@MapperScan
(
"com.jz.dm.mapper"
)
@EnableTransactionManagement
public
class
ApiGatewayApplication
{
...
...
jz-dm-apigateway/src/main/resources/application-test.yml
View file @
d89a6591
...
...
@@ -49,32 +49,3 @@ spring:
filters
:
stat
# ====================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
jz-dm-apigateway/src/main/resources/application.yml
View file @
d89a6591
...
...
@@ -19,19 +19,34 @@ spring:
active
:
test
#默认使用的配置文件
#MyBatis
#mybatis-plus:
# mapper-locations: classpath:/mapper/**/*.xml
# typeAliasesPackage: com.jz.common.entity
# #type-handlers-package: com.btcpay.commons.typehandler
# global-config:
# id-type: 1
# field-strategy: 2
# db-column-underline: true
# refresh-mapper: true
# configuration:
# map-underscore-to-camel-case: true
# cache-enabled: false
# #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
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
jz-dm-mall/src/main/resources/application-test.yml
View file @
d89a6591
...
...
@@ -56,3 +56,6 @@ spring:
-
192.168.31.167:6382
-
192.168.31.167:6383
-
192.168.31.167:6384
logging
:
level
:
com.jz.manage
:
debug
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment