在spring boot 2 中,已经不能通过写配置文件来忽略某些地址的安全控制,security.*相关的配置已经全部被弃用
在2中,默认集成的hibernate已经是hibernate5了,请注意5的特性。JPA的配置也是曾经的版本有变化。
以下是MYSQL数据库,jpa的配置,请注意,网上的教程案例中的spring.jpa.hibernate.naming.strategy也已经被弃用了。请换成
implicit-strategy
和
physical-strategy
spring.jpa.database
=
MYSQL
spring.jpa.show-sql
=
true
spring.jpa.hibernate.ddl-auto
=
update
spring.jpa.properties.hibernate.dialect
=
org.hibernate.dialect.MySQL5Dialect
spring.jpa.hibernate.use-new-id-generator-mappings
=
true
spring.jpa.hibernate.naming.implicit-strategy
=
org
.
hibernate
.
boot
.
model
.
naming
.
ImplicitNamingStrategyLegacyJpaImpl
spring.jpa.hibernate.naming.physical-strategy
=
org
.
hibernate
.
boot
.
model
.
naming
.
PhysicalNamingStrategyStandardImpl