根据https://spring.io/tools中的智能代码编辑功能,@Value("${serv}")
应该会触发属性完成弹出窗口。
但是当我使用新的 STS(spring-tool-suite-4-4.12.1.RELEASE-e4.21.0-linux.gtk.x86_64)时,实时悬停有效,但当我serv
在@Value("${}")
.
Spring Boot 演示项目在这里
[t=1637037571574] LSP4E to org.eclipse.languageserver.languages.springboot:
Content-Length: 319
[t=1637037571575] LSP4E to org.eclipse.languageserver.languages.springboot:
{"jsonrpc":"2.0","method":"textDocument/didChange","params":{"textDocument":{"version":50,"uri":"file:///home/k/projects/spring-boot-demo/src/main/java/com/example/demo/HelloController.java"},"contentChanges":[{"range":{"start":{"line":14,"character":14},"end":{"line":14,"character":14}},"rangeLength":0,"text":"s"}]}}
[t=1637037571575] org.eclipse.languageserver.languages.springboot to LSP4E:
{"jsonrpc":"2.0","method":"sts/highlight","params":{"doc":{"version":50,"uri":"file:///home/k/projects/spring-boot-demo/src/main/java/com/example/demo/HelloController.java"},"codeLenses":[]}}
[t=1637037571584] org.eclipse.languageserver.languages.springboot to LSP4E:
{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///home/k/projects/spring-boot-demo/src/main/java/com/example/demo/HelloController.java","diagnostics":[]}}
[t=1637037572415] LSP4E to org.eclipse.languageserver.languages.springboot:
Content-Length: 189
[t=1637037572415] LSP4E to org.eclipse.languageserver.languages.springboot:
{"jsonrpc":"2.0","id":"35","method":"textDocument/codeLens","params":{"textDocument":{"uri":"file:///home/k/projects/spring-boot-demo/src/main/java/com/example/demo/HelloController.java"}}}
[t=1637037572416] org.eclipse.languageserver.languages.springboot to LSP4E:
{"jsonrpc":"2.0","id":"35","result":[]}
[t=1637037594024] LSP4E to org.eclipse.languageserver.languages.springboot:
Content-Length: 319
[t=1637037594024] LSP4E to org.eclipse.languageserver.languages.springboot:
{"jsonrpc":"2.0","method":"textDocument/didChange","params":{"textDocument":{"version":51,"uri":"file:///home/k/projects/spring-boot-demo/src/main/java/com/example/demo/HelloController.java"},"contentChanges":[{"range":{"start":{"line":14,"character":15},"end":{"line":14,"character":15}},"rangeLength":0,"text":"e"}]}}
[t=1637037594025] org.eclipse.languageserver.languages.springboot to LSP4E:
{"jsonrpc":"2.0","method":"sts/highlight","params":{"doc":{"version":51,"uri":"file:///home/k/projects/spring-boot-demo/src/main/java/com/example/demo/HelloController.java"},"codeLenses":[]}}
[t=1637037594033] org.eclipse.languageserver.languages.springboot to LSP4E:
{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///home/k/projects/spring-boot-demo/src/main/java/com/example/demo/HelloController.java","diagnostics":[]}}
[t=1637037594931] LSP4E to org.eclipse.languageserver.languages.springboot:
Content-Length: 189
[t=1637037594931] LSP4E to org.eclipse.languageserver.languages.springboot:
{"jsonrpc":"2.0","id":"36","method":"textDocument/codeLens","params":{"textDocument":{"uri":"file:///home/k/projects/spring-boot-demo/src/main/java/com/example/demo/HelloController.java"}}}
[t=1637037594932] org.eclipse.languageserver.languages.springboot to LSP4E:
{"jsonrpc":"2.0","id":"36","result":[]}
[t=1637037596128] LSP4E to org.eclipse.languageserver.languages.springboot:
Content-Length: 319
[t=1637037596128] LSP4E to org.eclipse.languageserver.languages.springboot:
{"jsonrpc":"2.0","method":"textDocument/didChange","params":{"textDocument":{"version":52,"uri":"file:///home/k/projects/spring-boot-demo/src/main/java/com/example/demo/HelloController.java"},"contentChanges":[{"range":{"start":{"line":14,"character":16},"end":{"line":14,"character":16}},"rangeLength":0,"text":"r"}]}}
[t=1637037596129] org.eclipse.languageserver.languages.springboot to LSP4E:
{"jsonrpc":"2.0","method":"sts/highlight","params":{"doc":{"version":52,"uri":"file:///home/k/projects/spring-boot-demo/src/main/java/com/example/demo/HelloController.java"},"codeLenses":[]}}
[t=1637037596137] org.eclipse.languageserver.languages.springboot to LSP4E:
{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///home/k/projects/spring-boot-demo/src/main/java/com/example/demo/HelloController.java","diagnostics":[]}}
[t=1637037596949] LSP4E to org.eclipse.languageserver.languages.springboot:
Content-Length: 189
[t=1637037596949] LSP4E to org.eclipse.languageserver.languages.springboot:
{"jsonrpc":"2.0","id":"37","method":"textDocument/codeLens","params":{"textDocument":{"uri":"file:///home/k/projects/spring-boot-demo/src/main/java/com/example/demo/HelloController.java"}}}
[t=1637037596950] org.eclipse.languageserver.languages.springboot to LSP4E:
{"jsonrpc":"2.0","id":"37","result":[]}