spring boot jpa

事务:@Transactional

数据库配置:

spring:
datasource:
url: jdbc:mysql://192.168.1.105/spring
data-username: root
data-password:
driver-class-name: com.mysql.jdbc.Driver
jpa:
hibernate:
ddl-auto: create
#开发能看到sql语句
show-sql: true

posted @ 2018-02-24 17:46  公子秦1117  阅读(83)  评论(0编辑  收藏  举报