Spring Boot Load Static Data On Startup

Kenny Bastani spring boot

Spring Boot Load Static Data On Startup. Web you can create a data.sql file in your src/main/resources folder and it will be automatically executed on startup. Web i have to take the file as argument at start, let's say.

Kenny Bastani spring boot
Kenny Bastani spring boot

Web spring boot offers at least 5 different ways of executing code on startup, so which one should we choose? Web you can create a data.sql file in your src/main/resources folder and it will be automatically executed on startup. Which is the best way to do it? Web i have to take the file as argument at start, let's say.

Web you can create a data.sql file in your src/main/resources folder and it will be automatically executed on startup. Web spring boot offers at least 5 different ways of executing code on startup, so which one should we choose? Which is the best way to do it? Web i have to take the file as argument at start, let's say. Web you can create a data.sql file in your src/main/resources folder and it will be automatically executed on startup.