You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
git-test3/SpringBoot+MyBatis/application.yml

22 lines
562 B

#端口号配置
server:
port: 8080
#数据源配置
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/student?characterEncoding=UTF-8&serverTimezone=UTC
username: root
password: 123456
#mybatis相关配置
mybatis:
#配置MyBatis的xml配置文件路径
mapper-locations: classpath:com/uos/page/mapper/*.xml
#配置XML映射文件中指定的实体类别名路径
type-aliases-package: com.uos.page.domain
#开启驼峰命名
configuration:
map-underscore-to-camel-case: true