You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!!!
I'm having problem trying to run a spring-boot app inside my production environment with java -jar target/myjar.jar, before launch the app to production I was running it in my localhost with the maven plugin and it was working perfect, here is an example of one controller:
Hi!!!
I'm having problem trying to run a spring-boot app inside my production environment with
java -jar target/myjar.jar
, before launch the app to production I was running it in my localhost with themaven plugin
and it was working perfect, here is an example of one controller:as You can see I'm Returning a ModelAndView, the view is added and the objects to the model too.
As I said if this code ran with the
maven plugin
it works, but withjava -jar
I get this message:Error resolving template "/layout/home".
The solution that I take was chenge the return object to String:
This works for maven plugin and and java -jar.
Here is my spring-boot version:
I did not found a this exactly problem, so I don't know if is a bug, is something wrong with my code or something else.
I hope this could help in something, If you have and answer I want to know it.
Thank you very much!!!!!
The text was updated successfully, but these errors were encountered: