spring.profiles.active: dev spring: cache: guava: spec: expireAfterWrite=30s datasource: driver-class-name: com.mysql.jdbc.Driver # Keep the connection alive if idle for a long time (needed in production) testWhileIdle: true validationQuery: SELECT 1 # Show or not log for each sql query jpa: show-sql: true # Hibernate ddl auto (create, create-drop, update) hibernate: ddl-auto: validate #hbm2ddl.auto: update # Naming strategy naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy # The SQL dialect makes Hibernate generate better SQL for the chosen database properties.hibernate.dialect: org.hibernate.dialect.MySQL5Dialect --- # 开发环境 spring: profiles: dev datasource: driverClassName: com.mysql.jdbc.Driver url: jdbc:mysql://127.0.0.1:3306/mooctest_user?useUnicode=yes&characterEncoding=UTF-8 username: root password: zhangxin dubbo: application.name: user-service-provider registry.address: zookeeper://118.178.131.206:2181 protocol.name: dubbo protocol.port: 20900 # protocol.host: 127.0.0.1 scan: cn.iselab.mooctest.user.rpc monitor.protocal: registry provider.timeout: 120000 # provider.retries: 0 server: port: 8081 mybatis: typeAliasesPackage: cn.iselab.mooctest.user.model logging.config: classpath:log4j2.yaml --- # 测试服务环境 spring: profiles: test datasource: url: jdbc:mysql://101.37.175.111:3306/mooctest_user?useUnicode=yes&characterEncoding=UTF-8 # please modify manually username: mooctest # please modify manually password: secr3t! # please modify manually dubbo: application.name: user-service-provider registry.address: zookeeper://101.37.175.111:2181 protocol.name: dubbo protocol.port: 20900 protocol.host: 101.37.175.111 scan: cn.iselab.mooctest.user.rpc monitor.protocal: registry provider.timeout: 120000 provider.retries: 0 server: port: 8191 logging.config: classpath:log4j2.test.yaml logging.access.directory: /home/share/log spring.jpa.show-sql: false --- # 线上服务环境 spring: profiles: online datasource: url: jdbc:mysql://127.0.0.1:3306/mooctest_user?useUnicode=yes&characterEncoding=UTF-8 username: mooctest password: secr3t! dubbo: application.name: user-service-provider registry.address: zookeeper://118.178.131.206:2181 protocol.name: dubbo protocol.port: 20890 protocol.host: scan: cn.iselab.mooctest.user.rpc monitor.protocal: registry provider.timeout: 120000 provider.retries: 0 server: port: 8191 logging.config: classpath:log4j2.online.yaml logging.access.directory: /home/share/log spring.jpa.show-sql: false