application.yml文件 management: endpoints: web: exposure: include: health,info,loggers,env,refresh base-path: /actuator logging: pattern: console: "%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level|[%X{request-id}]|[%X{user-id}]-[%thread] %logger{50} - %msg%n" #"%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %t --- [%thread] %logger{50} - %msg%n" #分页配置 pagehelper: helperDialect: mysql reasonable: true supportMethodsArguments: true params: count=countSql mybatis: mapper-locations: classpath:mappings/**/*.xml application: mq-topic: tenant-admin: topic.tenant-admin dept-curd: topic.dept-curd #spring boot 2.1.x 会自动加载 redis 配置 spring: liquibase: change-log: classpath:/db/master.xml autoconfigure: exclude: - org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration - org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration
bootstrap.yml文件
spring: application: name: ntc-basis profiles: # The commented value for `active` can be replaced with valid Spring profiles to load. # Otherwise, it will be filled in by maven when building the WAR file # Either way, it can be overridden by `--spring.profiles.active` value passed in the commandline or `-Dspring.profiles.active` set in `JAVA_OPTS` active: local #spring.profiles.active# cloud: config: fail-fast: false # if not in "prod" profile, do not force to use Spring Cloud Config #uri: http://admin:${jhipster.registry.password}@localhost:8761/config uri: http://admin:${jhipster.registry.password:admin}@localhost:8761/config # name of the config server's property source (file.yml) that we want to use name: ntc-basis profile: local # profile(s) of the property source label: master # toggle to switch to a different version of the configuration as stored in git # it can be set to any label, branch or commit of the configuration source Git repository client: ipAddress: 127.0.0.1
application-local.yml文件
spring: application: name: ntc-basis profiles: active: local include: swagger jackson: time-zone: Asia/Shanghai serialization: indent_output: true fail_on_empty_beans: false date-format: yyyy-MM-dd HH:mm:ss defaultPropertyInclusion: NON_EMPTY deserialization: fail_on_unknown_properties: false parser: allow_unquoted_control_chars: true #允许出现单引号 allow_single_quotes: true datasource: type: com.zaxxer.hikari.HikariDataSource url: jdbc:mysql://10.70.30.7:3306/ntc_basis?useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true&serverTimezone=GMT%2B8 username: irootech password: ENC(Qs/T0+cvosDSdRIzNcUy+tskdB/74cwYooZO+PNvqdE=) hikari: pool-name: DatebookHikariCP connection-test-query: SELECT 1 maximum-pool-size: 30 connection-timeout: 30000 minimum-idle: 5 body-source-properties: cachePrepStmts: true prepStmtCacheSize: 250 prepStmtCacheSqlLimit: 2048 useServerPrepStmts: true redis: cluster: enable: false host: 10.70.30.4 port: 6379 password: ENC(EdXAGEcmGRZBCtIDMNsM+smqB8haR9RU0uvJpltgL84=) expire: 1800 index: 0 timeout: 0 #redis操作的超时时间 commandTimeout: 10000 pool: maxActive: 8 maxWait: -1 maxIdle: 8 minIdle: 0 jms: pub-sub-domain: true cloud: discovery: enabled: false rabbitmq: #是访问port不是15672,15672是api和管理界面的port port: 5672 username: admin password: admin publisher-confirms: true listener: #消费 simple: concurrency: 1 #最小消息监听线程数 max-concurrency: 1 #最大消息监听线程数 addresses: 10.70.30.28 server: port: 8084 logging: level: com.rootcloud: debug app: ntc: web: ntc-amc-web.bdn-ntc-dev.rootcloudapp.com notify: ntc-notify.bdn-ntc-dev.rootcloudapp.com basis: ntc-basis.bdn-ntc-dev.rootcloudapp.com ntc-certificate-base: localhost:9093 system-init: ntc-system-init.bdn-ntc-dev.rootcloudapp.com asset: ntc-asset-management-company.bdn-ntc-dev.rootcloudapp.com community: ntc-service-community.bdn-ntc-dev.rootcloudapp.com configuration: ntc-configuration.bdn-ntc-dev.rootcloudapp.com ntc: basis: login-out-message: 您的账号已在其他设备进行登录,若非您本人登录,则密码可能已泄露,为保护您的账户安全,请点击重新登录进行修改密码,以防他人进行不正当操作造成损失。 login-out-ap-message: 您的账号已在其他设备进行登录,若非您本人登录,请点击重新登录或者联系企业管理员,请不要随意将手机验证码透露给别人。 single-login: true aspectLogger: 1 jasypt: encryptor: password: local # KF5系统配置 kf5: domain: https://rootcloud.kf5.com apiKey: 46845ac7e3e1d3fb0c9a83b51eff69 returnTo: https://rootcloud.kf5.com/hc/request/new/