I set 'spring.jpa.hibernate.ddl-auto = update' property in application.properties file, and also am using 'data.sql' to load some seed-data.
When I run my spring-boot project 'First Time', all Tables and seed-data loaded to DB.
If I run again my spring-boot project for 'Second Time', here I need to block execution of 'data.sql'.
now am getting 'com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '1' for key 'PRIMARY' ' because of loaded old seed-data.