配置
配置的话,目前用到的就是常规的application.yml
文件。
以nebula-framework-system
模块作为启动模块为例,配置如下:
yaml
spring:
application:
name: nebula-framework-system
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/nebula?useTimezone=true&serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: 12345678
mybatis:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
map-underscore-to-camel-case: true