server.tomcat.basedir=xxxxxx
查看了一下,用户名下面确实好多临时文件夹
Unable to create tempDir. java.io.tmpdir is set to C:\Users\SRV-DA~1\AppData\Local\Temp\5\
Unable to create tempDir. java.io.tmpdir is set to C:\Users\SRV-DA~1\AppData\Local\Temp\5\在Windows server,跑了几个月的程序,突然报警了,我也很无语org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.b
因为未知原因,jdk-8u212-windows-x64.exe安装不上,拷贝别人安装好的文件夹C:\Program Files\Java\jdk1.8.0_231到自己的电脑,后端程序可以执行,但报以下错误信息:
Unable to create tempDir. java.io.tmpdir is set to C:\Users\ADMINI~1\AppData
解决办法:
删掉拷贝别人...
偶然遇到,在此记录一下:Unable to create tempDir. java.io.tmpdir is set to C:\Windows\
背景:eclipse + jdk8
debug时会报错,但是能够通过run启动
百度了一些原因是项目路径中存在中文导致的乱码;但是我的项目路径没有中文
后来在论坛找到一个靠谱的回答(感谢):
给java.io.tmpdir创造一个文件夹
步骤:window -> preferences -> java -> Installed J
无法创建 tempDir。 java.io.tmpdir 设置为 /tmp Unable to create tempDir. java.io.tmpdir is set to /tmp
解决方法:
第一种: 更改 /tmp目录 的权限以授予您的用户访问权限
# chmod -R 777 /tmp
第二种:将用户添加到sudo组
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spr...
org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to create tempDir. java.io.tmpdir is set to C:\Windows\TEMP
at org.springframework.boot.