spring boot 设置虚拟路径:resources.static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:/www/zj/static/
如:
server:
port: 8082spring:
application:
name: domain
resources.static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:/www/zj/static/
datasource:
type: com.zaxxer.hikari.HikariDataSource
driverClassName: com.mysql.jdbc.Driver
url: jdbc:mysql://192.168.2.46:3306/db_new?characterEncoding=utf-8
username: root
password: root
validationQuery: select 1
cloud:
stream:
bindings:
output_channel:
destination: mydest
binder: rabbit1
binders:
rabbit1:
type: rabbit
environment:
spring:
rabbitmq:
host: localhost
port: 5672
username: guest
password: guest
virtual-host: /
redis:
database: 0
host: 127.0.0.1
port: 6379
password: 123456
pool:
max-active: 8
max-wait: 1
max-idle: 8
min-idle: 1
timeout: 3000
eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
instance:
prefer-ip-address: true
mybatis:
config-location: classpath:mybatis-config.xml
type-aliases-package:
com.cnjy.zj.modules.sys.domain
,com.cnjy.zj.modules.um.domain
,com.cnjy.zj.modules.tg.domain
,com.cnjy.zj.modules.ta.domain
,com.cnjy.zj.modules.ex.domain
,com.cnjy.zj.modules.devel.domain
,com.cnjy.zj.modules.cms.domain
,com.cnjy.zj.modules.bd.domain
,com.cnjy.zj.modules.eva.domain
,com.cnjy.zj.modules.kq.domain
,com.cnjy.zj.modules.file.domain
,com.cnjy.zj.framework.jdbc.vo
type-handlers-package: com.cnjy.zj.modules.**.mapper
mapper-locations: classpath:com.cnjy.zj.modules.**.mapper/*.xml
security:
headers:
frame: false
xss: false
cache: false
content-type: false
hsts: all