实际开发中,都是复制粘贴。
server:port: 8001 #微服务端口号spring:application:name: cloud-payment-service #微服务名称datasource:type: com.alibaba.druid.pool.DruidDataSource # 当前数据源操作类型driver-class-name: org.gjt.mm.mysql.Driver # mysql驱动包url: jdbc:mysql://localhost:3306/db2021?useUnicode=true&characterEncoding=utf-8&useSSL=false #数据库连接urlusername: root #账号password: 941941 #密码mybatis: #与mybatis整合。mapperLocations: classpath:mapper/*.xmltype-aliases-package: com.lun.springcloud.entities # 所有Entity别名类所在包
