Veins

eureka:
client:
registerWithEureka: true # service registration switch
fetchRegistry: true # Service Discovery switch
serviceUrl: # registered to which Eureka Server service registry, more middle separated by commas
defaultZone: http://localhost:6001/eureka
1
2
3
4
5
6
server:
port: 8001
mybatis:
config-location: classpath: mybatis / mybatis.cfg.xml # mybatis configuration files
path
type-aliases-package: com.mengxuegu.springcloud.entities # alias classes where all Entity
package
mapper-locations: classpath:. mybatis / mapper / ** / * xml # mapper mapping file
spring:
application:
name: microservice-product # this is very important, which call each other after the service and between services are generally based on
The name
datasource:
type: com.alibaba.druid.pool.DruidDataSource # type of the current data source operand
driver-class-name: com.mysql.cj.jdbc.Driver # mysql driver package
url: jdbc:mysql://127.0.0.1:3306/springcloud_db01?serverTimezone=GMT%2B8 #
Name database
username: root
password: root
dbcp2:
min-idle: 5 # database connection pool maintained the minimum number of connections
initial-size: 5 # initialization connections
max-total: 5 # maximum number of connections
max-wait-millis: 150 # maximum wait for a connection timeout acquired
eureka:
client:
registerWithEureka: true # service registration switch
fetchRegistry: true # Service Discovery switch
serviceUrl: # Client (service provider) to which registered a Eureka Server service registry, multiple separated by commas
defaultZone: http://localhost:6001/eureka 

Guess you like

Origin www.cnblogs.com/lijun6/p/12192350.html