Debugging jsp with spring-boot and IntelliJ -


I am developing a web app using Springboot, JSP, and embedded Tomcat. The application is running fine and if I add the Maven run configuration with the spring-boot, then I can debug the Java file without any problem.

But when I try to add a breakpoint to one of my JSP files IntelliJ shows this error: 'Breakpoint is not from any class.'

If I configure IntelliJ to use an external Tommack server then jsp debugging works perfectly.

How to debug JSP using the Spring-Boot Maven goal? Is this a problem with the spring-boot or Maven run configuration in IntelIge?

I really would like to be able to use full spring boot capabilities from my God environment.

Thank you.

The problem is that the spring boot app produces another process. You have to tell the boot that you want to debug and not only have to run commands for mewen or grade in debug mode. Update: For my current project, I just provide a class to start spring boot, a war file. ( See how to relate to the use of spring boot for war files deployed in actual files)

Therefore, I use Springboot during development of frontend accessories: Instant for running resources Reload and etc. Debugging the Java Code I deploy the stuff in the debug mode to the Tomcat. For release I have to decide which package type I want, because my app is capable of running as jar or war file.

BTW: If you want to use tomcat only on the accessories (special filters and others), you can use an embedded tomch for the springboot: run it as well, then your environment They are similar and you do not prey on ghosts; -

Update 2

According to your debug, just enter your boot app I can run the main method, I think it helps to use the Mewen target at least once so that everything can be compiled / copied. It works for me! According to the spring boot team, they changed the method of spring-boot: Run work, hence beginning with 1.2 you should be able to use debug mode as well as to target the maven, although starting the spring boot app Always recommend the main method to start.

Update 4 I can confirm beginning with spring 1.2 You can do the set of breakpoints etc to set up direct mevan target in debug mode.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -