Where to put Groovy bean definitions in a Spring Boot webapp? -


using spring boot can jar created webapp (allowing me execute java -jar test-0.1.0.jar want). configure spring beans using groovy bean def syntax, separate file beans.groovy contain definitions.

how can have groovy file included in jar , how can tell spring load it?

i've seen few examples around web showing how define beans way spring boot, none explain how groovy file included in jar , run webapp.

springapplication accepts resource paths sources, include string ending in ".groovy", e.g.

public static main(string args[]) {     springapplication.run("classpath:beans.groovy", args); } 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -