yml文件的配置
server:
port: 7000
spring:
application:
name: parent-user
redis:
host: 192.168.00.128
port: 6379
rabbitmq:
host: 192.168.00.128
port: 5672
virtual-host: /woniu
username: root
password: root
publisher-returns: true
publisher-confirm-type: correlated
listener:
direct:
acknowledge-mode: manual
simple:
acknowledge-mode: manual
template:
mandatory: true
datasource:
druid:
url: jdbc:mysql://localhost:3306/scw?serverTimezone=GMT%2B8
driver-class-name: com.mysql.cj.jdbc.Driver
db-type: com.alibaba.druid.pool.DruidDataSource
username: root
password: 12300
url: jdbc:mysql://localhost:3306/scw?serverTimezone=GMT%2B8
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: 12300
spring:
application:
name: gateway-server
cloud:
gateway:
routes:
- id: user_route
uri: lb://USER
predicates:
- Path=/user/hello
filters:
- name: Login
discovery:
locator:
enabled: true
logging:
level:
root: WARN
cn.wn: DEBUG
pattern:
console: "${CONSOLE_LOG_PATTERN:\
%clr(${LOG_LEVEL_PATTERN:%5p}) \
%clr(|){faint} \
%clr(%-40.40logger{39}){cyan} \
%clr(:){faint} \
%m%n${LOG_EXCEPTION_CONVERSION_WORD:%wEx}}"
mybatis:
mapper-locations: classpath:mybatis/mapper