Import = "user", uniqueConstraints = "email")) I’ve used the value “update” for this property. The property -auto is used for database initialization. Spring Boot uses Hibernate as the default JPA implementation. In the above properties file, the last two properties are for Hibernate. You will need to create a database named demo in MySQL, and change the & properties as per your MySQL installation. # Hibernate ddl auto (create, create-drop, validate, update) # The SQL dialect makes Hibernate generate better SQL for the chosen database =jdbc:mysql://localhost:3306/demo?useSSL=false&serverTimezone=UTC&useLegacyDatetimeCode=false # DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties) Open the application.properties file and add the following properties to it. Demo project for Spring Boot Thymeleaf and Hibernate
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |