DebugTools icon indicating copy to clipboard operation
DebugTools copied to clipboard

在IDEA中使用Tomcat运行时报错

Open loong95 opened this issue 1 year ago • 3 comments

Image Image

看报错,似乎是DebugToolsJavaProgramPatcher.isMavenAndGrade中,调用的javaParameters.getMainClass()返回null导致的

loong95 avatar Jul 13 '25 15:07 loong95

目前还没有尝试过tomcat下启动的情况,可以帮忙在 https://github.com/java-hot-deploy/debug-tools/tree/main/debug-tools-test 下简单写一个 tomcat 项目 curd 的 demo 吗?我尝试一下tomcat启动下该如何热重新。

future0923 avatar Jul 14 '25 00:07 future0923

目前还没有尝试过tomcat下启动的情况,可以帮忙在 https://github.com/java-hot-deploy/debug-tools/tree/main/debug-tools-test 下简单写一个 tomcat 项目 curd 的 demo 吗?我尝试一下tomcat启动下该如何热重新。

好的,我来写一个

loong95 avatar Jul 14 '25 01:07 loong95

<plugin>
	<groupId>org.apache.tomcat.maven</groupId>
	<artifactId>tomcat7-maven-plugin</artifactId>
	<configuration>
		<port>34567</port>
		<path>/test</path>
		<uriEncoding>UTF-8</uriEncoding>
	</configuration>
</plugin>

使用tomcat7插件启动项目时,不能热重载 在大飞机的状态下通过 debug 方式启动应用不会提示热重载插件信息

hexueqing avatar Jul 25 '25 04:07 hexueqing