事务:@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
事务:@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