I want to be able to debug jsp templates in IntelliJ.
- I'm using Spring-Boot
- Project is without
web.xml
file. Made with Annotations. - I'm launching app via Spring Boot run Configuration in IntelliJ
- When I launch the app, breakpoints become gray crossed circles, indicating that no class associated with it.
- Jsp location is
/webapp/WEB-INF/jsp
Now, before I get marked for duplicate:
This question is quite old and only suggest using
web.xml
+Tomcat
and plugin. Pluggin doesn't seem to work and switching toweb.xml
is going to be a real pain in the bottom. Would be nice to stay with annotations and not includeweb.xml
Tried launching via maven command as suggested in this answer, but for unknown reason, after launching, the process detaches from intellij and I'm not able to launch it again (have to destroy process in the process task first) and it doesn't resolve the issue either.
- Other answers, suggesting launching Tomcat directly fail as it won't launch without
web.xml
.
How can I keep an ease and speed of launching Spring-Boot application, have an ability to hot-swap the code, debug java and jsp templates while avoiding web.xml
configuration all at the same time?