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

posted @ 2020-04-08 16:18  疯靡  阅读(429)  评论(0)    收藏  举报