逃脱| VSCODE启动中的字符。
我正在尝试在WSL2中的Vscode上运行我的Springboot应用程序。这是我的启动
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Launch Application",
"request": "launch",
"mainClass": "myApp.Application",
"projectName": "myApp",
"args": "-Dspring-boot.run.profiles=local spring-boot:run",
"linux": {
"vmArgs": [
"-Dhttp.nonProxyHosts=127.0.0.1|localhost|somemore",
"-Dhttp.proxyHost=myproxy",
"-Dhttp.proxyPort=8080",
"-Dhttps.proxyHost=myproxy",
"-Dhttps.proxyPort=8080",
]},
"env": {
"SPRING_PROFILES_ACTIVE" : "local",
}
}
]
。外壳管道。
如何正确逃脱|
?
I'm trying to run my springboot app on vsCode in WSL2. Here is my launch.json:
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Launch Application",
"request": "launch",
"mainClass": "myApp.Application",
"projectName": "myApp",
"args": "-Dspring-boot.run.profiles=local spring-boot:run",
"linux": {
"vmArgs": [
"-Dhttp.nonProxyHosts=127.0.0.1|localhost|somemore",
"-Dhttp.proxyHost=myproxy",
"-Dhttp.proxyPort=8080",
"-Dhttps.proxyHost=myproxy",
"-Dhttps.proxyPort=8080",
]},
"env": {
"SPRING_PROFILES_ACTIVE" : "local",
}
}
]
When I try to run the application it fails because |
in -Dhttp.nonProxyHosts
is not properly escaped and WSL2 (Ubuntu) sees it as a shell pipeline.
How can I escape the |
properly?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论