28 lines
1011 B
Properties
28 lines
1011 B
Properties
# 应用服务 WEB 访问端口号
|
|
server.port=8080
|
|
|
|
# 下面这些内容是为了让MyBatis映射
|
|
# 指定Mybatis的Mapper文件
|
|
mybatis.mapper-locations=classpath:mapper/*.xml
|
|
# 指定Mybatis的实体目录
|
|
#mybatis.type-aliases-package=com.bw.bean
|
|
# 日志输出
|
|
logging.level.com.bw=debug
|
|
# mybatis下划线转小驼峰
|
|
mybatis.configuration.map-underscore-to-camel-case=true
|
|
# 数据库驱动:
|
|
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
|
# 数据源名称
|
|
#spring.datasource.name=defaultDataSource
|
|
# 数据库连接地址
|
|
spring.datasource.url=jdbc:mysql://127.0.0.1:3307/rik08?serverTimezone=UTC&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
|
|
# 数据库用户名&密码:
|
|
spring.datasource.username=root
|
|
spring.datasource.password=wx0713101x
|
|
#连接数据库使用SQL方言
|
|
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
|
|
#自动创建表和更新表结构
|
|
#spring.jpa.hibernate.ddl-auto=update
|
|
|
|
|