HotswapProjects/HotswapAgent

Help, the new Controller API interface cannot be hot updated.

XuxuGood opened this issue · 4 comments

A strange problem was detected today. The specific steps to reproduce are as follows:

There is an initial Controller when the service is started, and the interface does not have hello2. At this time, first access the hello2 interface on the page, and a 404 will be reported:

image image

接着我在Controller添加hello接口,同时变更springboot application.properties中配置,同时热更新这两个文件到extraClasspath目录下。

image image

However, when the hello2 interface is actually accessed again, the error code is still 404, and the interface has not been hot updated.

extraClasspath目录内容如下:
image

Version:
java: 8u181
dcevm: 8u181
hotswapagent: 1.4.2-SNAOSHOT

Service start:
java -XXaltjvm=dcevm -javaagent:/www/app-preview/hotswapagent-1.4.2-SNAPSHOT.jar=autoHotswap=true,propertiesFilePath=/www/app-preview/hotswap-agent.properties -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8005 -jar /www/app-preview/app/app-preview-push-1.0.0-SNAPSHOT.jar

@skybber Help me~

Unfortunately, I'm not a Spring user at all. Maybe @cvictory or @beiwei30 could help.