標籤:nat nbsp hbm 檔案 serve time path har upd
#springboot-mybatis配置(xml)
spring.datasource.url=jdbc:mysql://localhost:3306/testspring.datasource.username=rootspring.datasource.password=123456spring.datasource.driver-class-name=com.mysql.jdbc.Drivermybatis.mapper-locations=classpath*:mybatis/*Mapper.xmlmybatis.type-aliases-package=com.forezp.entity
通過配置mybatis.mapper-locations來指明mapper的xml檔案存放位置,我是放在resources/mybatis檔案下的。mybatis.type-aliases-package來指明和資料庫映射的實體的所在包。
springboot-jpa配置
spring.datasource.url=jdbc:mysql://127.0.0.1/test?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC&useSSL=truespring.datasource.username=rootspring.datasource.password=rootspring.datasource.driver-class-name=com.mysql.jdbc.Driverspring.jpa.properties.hibernate.hbm2ddl.auto=updatespring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialectspring.jpa.show-sql= true
springboot-mybatis配置(xml)/springboot-jpa配置