spring-boot - Spring 开发工具远程无法使用 Intellij 和 docker
问题描述
我正在尝试使用 Intellij 和 spring 开发工具在 Docker 中调试我的远程应用程序,但我有这个例外:
Exception in thread "File Watcher" java.lang.IllegalStateException: Unexpected 500 INTERNAL_SERVER_ERROR response uploading class files
at org.springframework.util.Assert.state(Assert.java:94)
at org.springframework.boot.devtools.remote.client.ClassPathChangeUploader.performUpload(ClassPathChangeUploader.java:111)
at org.springframework.boot.devtools.remote.client.ClassPathChangeUploader.onApplicationEvent(ClassPathChangeUploader.java:93)
at org.springframework.boot.devtools.remote.client.ClassPathChangeUploader.onApplicationEvent(ClassPathChangeUploader.java:58)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:402)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:359)
at org.springframework.boot.devtools.classpath.ClassPathFileChangeListener.publishEvent(ClassPathFileChangeListener.java:67)
at org.springframework.boot.devtools.classpath.ClassPathFileChangeListener.onChange(ClassPathFileChangeListener.java:63)
at org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.fireListeners(FileSystemWatcher.java:304)
at org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.updateSnapshots(FileSystemWatcher.java:297)
at org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.scan(FileSystemWatcher.java:259)
at org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.run(FileSystemWatcher.java:239)
at java.lang.Thread.run(Thread.java:748)
你能帮我吗。
解决方案
推荐阅读
- linux - 致命错误:asm/types.h:交叉编译内核 3.16 时没有这样的文件或目录
- awk - awk 问题中的 Switch/Case 语句
- sql - 如何使用具有相似但不相同的名称列连接 2 个表?
- docker - 在 Jenkins 中找不到 package.json
- java - 在 Spring MVC 中不能将有效的 JSON 数组作为请求正文
- php - 在浏览器中强制 404
- xamarin - 为 Xamarin Forms 应用程序创建 MSI 安装程序
- javascript - 如何断言所有 $ReadOnlyArray 成员都属于某种类型?
- javascript - 在 vue.js 应用程序中设置视口元标记
- php - 在 Laravel 项目中上传视频