IntelliJ + Tomcat + Spring-Loaded

旧城冷巷雨未停 提交于 2019-11-29 01:42:46

If you added the following jvm parameters (as described at the springloaded page) to your tomcat

-javaagent:<pathTo>/springloaded-{VERSION}.jar -noverify SomeJavaClass

you should be fine. It may help to disable auto reloading in tomcat for the webapp you are testing. For exmaple in your server.xml:

<Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true">
    <Context docBase="projekt" path="/projekt" reloadable="false" ...

This ensures that only the springloaded classloader loads changed classes.

spring loaded cannot hotswap jars.

Put web fragment output into webapp/WEB-INF/classes

Also spring loaded support only spring 4.1 https://github.com/spring-projects/spring-loaded/issues/139

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!