idea远程debug k8s容器服务
1.首先 项目开启debug模式
debug: true
2.dockerfile文件设置
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005", "./target/app.jar"]
3. idea设置
debug: true
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005", "./target/app.jar"]