_# server服务器 port端口号
_server:
port: 8090
spring:
datasource:
#连接数据库的驱动
_driver-class-name: com.mysql.cj.jdbc.Driver
#url 数据库的地址
url: jdbc:mysql://localhost:3306/book?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&allowMultiQueries=true
#连接数据的用户名
username: root
#连接数据库的密码
password: 123456
mybatis:
type-aliases-package: com.example.demo01.mapper
mapper-locations: classpath:mybatis/*.xml
configuration:
#当遇到同样名字的时候,是否允许覆盖注册
_map-underscore-to-camel-case: true
————————————————————
<?xml version=”1.0” encoding=”UTF-8” ?>
<!DOCTYPE mapper
PUBLIC “-//mybatis.org//DTD Mapper 3.0//EN”
“http://mybatis.org/dtd/mybatis-3-mapper.dtd">
�
