Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
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
fangxinjiang
yifu-mvp
Commits
ae2d463e
Commit
ae2d463e
authored
May 25, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
3c0c2fc5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
137 additions
and
19 deletions
+137
-19
application.yml
yifu-auth/src/main/resources/application.yml
+137
-19
No files found.
yifu-auth/src/main/resources/application.yml
View file @
ae2d463e
server
:
port
:
3000
# 加解密根密码
jasypt
:
encryptor
:
password
:
pig
#根密码
# 暴露监控端点
management
:
endpoints
:
web
:
exposure
:
include
:
"
*"
endpoint
:
health
:
show-details
:
ALWAYS
# feign 配置
feign
:
sentinel
:
enabled
:
true
okhttp
:
enabled
:
true
httpclient
:
enabled
:
false
client
:
config
:
default
:
connectTimeout
:
10000
readTimeout
:
10000
compression
:
request
:
enabled
:
true
response
:
enabled
:
true
# mybaits-plus配置
mybatis-plus
:
mapper-locations
:
classpath:/mapper/*Mapper.xml
global-config
:
banner
:
false
db-config
:
id-type
:
auto
table-underline
:
true
logic-delete-value
:
1
logic-not-delete-value
:
0
configuration
:
map-underscore-to-camel-case
:
true
# spring security 配置
security
:
oauth2
:
resource
:
loadBalanced
:
true
token-info-uri
:
http://yifu-auth/oauth/check_token
# 通用放行URL,服务个性化,请在对应配置文件覆盖
ignore
:
urls
:
-
/v3/api-docs
-
/actuator/**
# swagger 配置
swagger
:
enabled
:
true
title
:
Yifu Swagger API
gateway
:
http://${GATEWAY_HOST:yifu-gateway}:${GATEWAY-PORT:9999}
token-url
:
${swagger.gateway}/auth/oauth/token
services
:
yifu-upms-biz
:
admin
yifu-codegen
:
gen
# Spring 相关
spring
:
application
:
name
:
@
artifactId@
---
spring
:
cloud
:
nacos
:
discovery
:
server-addr
:
${NACOS_HOST:yifu-register.qas-mvp.svc.cluster.local}:${NACOS_PORT:8848}
config
:
server-addr
:
${spring.cloud.nacos.discovery.server-addr}
config
:
import
:
-
nacos:application-@profiles.active@.yml
-
nacos:${spring.application.name}-@profiles.active@.yml
#import:
# - classpath: application-test.yml
activate
:
on-profile
:
test
mvc
:
pathmatch
:
matching-strategy
:
ant_path_matcher
redis
:
host
:
yifu-redis
password
:
'
@yf_2017'
cloud
:
sentinel
:
eager
:
true
transport
:
dashboard
:
yifu-sentinel:5003
# 数据源
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
yf_zsk
url
:
jdbc:mysql://192.168.1.65:22306/yifu_upms?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
freemarker
:
allow-request-override
:
false
allow-session-override
:
false
cache
:
true
charset
:
UTF-8
check-template-location
:
true
content-type
:
text/html
enabled
:
true
expose-request-attributes
:
false
expose-session-attributes
:
false
expose-spring-macro-helpers
:
true
prefer-file-system-access
:
true
suffix
:
.ftl
template-loader-path
:
classpath:/templates/
---
spring
:
cloud
:
nacos
:
discovery
:
server-addr
:
${NACOS_HOST:yifu-register}:${NACOS_PORT:8848}
config
:
server-addr
:
${spring.cloud.nacos.discovery.server-addr}
config
:
import
:
-
nacos:application-@profiles.active@.yml
-
nacos:${spring.application.name}-@profiles.active@.yml
#import:
# - classpath: application-test.yml
activate
:
on-profile
:
dev
\ No newline at end of file
on-profile
:
dev
mvc
:
pathmatch
:
matching-strategy
:
ant_path_matcher
redis
:
host
:
yifu-redis
password
:
'
@yf_2017'
cloud
:
sentinel
:
eager
:
true
transport
:
dashboard
:
yifu-sentinel:5003
# 数据源
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
yf_zsk
url
:
jdbc:mysql://192.168.1.65:22306/yifu_upms?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
freemarker
:
allow-request-override
:
false
allow-session-override
:
false
cache
:
true
charset
:
UTF-8
check-template-location
:
true
content-type
:
text/html
enabled
:
true
expose-request-attributes
:
false
expose-session-attributes
:
false
expose-spring-macro-helpers
:
true
prefer-file-system-access
:
true
suffix
:
.ftl
template-loader-path
:
classpath:/templates/
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