springboot配置yml文件
spring: application: name: projectManage resources : static-locations : classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:/internet/springCloud/upload/ thymeleaf: cache: false cloud: loadbalancer: retry: enabled: true http: encoding: charset: UTF-8 force: true enabled: true datasource: name: test url: jdbc:mysql://10.64.42.89:3306/povertyProDB?useUnicode=true&characterEncoding=utf-8 username: fpdev p assword: fpdev # ???druid????? type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.jdbc.Driver filters: stat maxActive: 20 initialSize: 1 maxWait: 60000 minIdle: 1 timeBetweenEvictionRunsMillis: 60000 minEvictableIdleTimeMillis: 300000 validationQuery: select 'x' testWhileIdle: true testOnBorrow: false testOnReturn: false poolPreparedStatements: true maxOpenPreparedStatements: 20 mybatis: mapper-locations: classpath:mapping/*.xml type-aliases-package: com.model logging: level: DEBUG config-location: classpath:mybatis-config.xml eureka: client: #?????????(???????��)????????????eureka???? instance-info-replication-interval-seconds: 1 healthcheck: #??????????? enabled: true service-url: #???????????? defaultZone: http://admin:eurekaMgt1234@10.64.42.111:9912/eureka instance: #???eureka server??????????client??????????????????????????? lease-renewal-interval-in-seconds: 1 #???eureka client??????????server?????? lease-expiration-duration-in-seconds: 2 statusPageUrlPath: ${server.servlet.context-path}/actuator/info healthCheckUrlPath: ${server.servlet.context-path}/actuator/health server: servlet: context-path: /projectManage port: 9918 ribbon: ConnectTimeout: 250 ReadTimeout: 1000 OkToRetryOnAllOperations: true MaxAutoRetriesNextServer: 2 MaxAutoRetries: 1 cas: #service前面代表cas登录地址 后面代表登录成功后跳转地址成功后跳转地址要跟casService一致 loginUrl: http://10.64.42.111:9011/cas/login?service=http://localhost:9918/projectManage/casLogin #无授权访问跳转的路径 unauthorizedUrl: http://localhost:9918/projectManage/authority/notAuthorized #cas服务端 serverUrlPrefix: http://10.64.42.111:9011/cas #票据接收地址 casService: http://localhost:9918/projectManage/casLogin #单点登出 redirectUrl: http://10.64.42.111:9011/cas/logout #配置验证错误时的失败页面 failureUrl: http://localhost:9918/projectManage/authority/errorPage #登陆成功跳转方法 successUrl: http://localhost:9918/projectManage/frontIndex/frontIndex user: url: http://OFFICESERVICE/officeService/user/
用户评论