pom.xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-undertow</artifactId>
</dependency>
application.yaml
server:
port: 8084
http2:
enabled: true
undertow:
io-threads: 16
worker-threads: 256
buffer-size: 1024
buffers-per-region: 1024
direct-buffers: true
launch.json
{
"configurations": [
{
"type": "java",
"name": "CodeLens (Launch) - DemoApplication",
"request": "launch",
"mainClass": "hswb.hswbjava.DemoApplication",
"projectName": "hswb-java"
},
{
"type": "java",
"name": "Debug (Launch)",
"request": "launch",
"console": "internalConsole",
"stopOnEntry": true,
"mainClass": "hswb.hswbjava.DemoApplication",
"projectName": "demo"
}
]
}
settings.json
{
"workbench.iconTheme": "vscode-icons",
"workbench.startupEditor": "newUntitledFile",
"java.errors.incompleteClasspath.severity": "ignore",
"workbench.colorTheme": "Atom One Dark",
"java.home":"/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home",
"java.configuration.maven.userSettings": "/apache-maven-3.6.3/conf/settings.xml",
"maven.executable.path": "/apache-maven-3.6.3/bin/mvn.cmd",
"maven.terminal.useJavaHome": true,
"maven.terminal.customEnv": [
{
"environmentVariable": "JAVA_HOME",
"value": "/jdk1.8.0_161.jdk/Contents/Home"
}
],
"java.configuration.updateBuildConfiguration": "automatic",
}
纪录