spring boot jpa 配置

#spring.jpa.show-sql=true
#spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.show_sql=true
spring.jpa.properties.hibernate.hbm2ddl.auto=update

有的时候第一种不生效

#spring.jpa.properties.entity-scan-packages=com.entity

配置自定义的entity

猜你喜欢

转载自www.cnblogs.com/yjwfcs/p/12660679.html