spring bootmaven1.3
spring-boot-starter-data-jpa
oracle 11g
:
spring.jpa.hibernate.ddl-auto=update
src/main/resourcesdata.sqlinsert intosql
start the project, and the SYS_ row table will be created in the database and generated by jpa according to
@ Entity
public class SysRole {
. At the same time, the statements in data.sql are executed to insert data into the table.
question: where is jpa configured? will you find the data.sql file and execute the sql statement inside?
however, in boot version 2.0, it was found that the sql statement in the data.sql file was not executed.