我正在使用以下堆栈开发 Web 服务:
- Spring Boot 和 Spring Security
- Maven ->添加 Maven Repo 对 pom.xml 的依赖项
- vs Code
- 两个项目(两个 VS Code 窗口):生产开发和开发测试
- 列表项
描述:
- 在使用“SessionRegistry”时,当我尝试查看“SessionRegistry.class”内部的内容时,参数名称如下图所示:
问题
Image_1.1) 没有显示生产项目图像中所圈出的参数用途的指示。
测试项目的统计信息,这是我的实际期望:
期望 Image_1.2)有适当的名称参数的含义,并显示该参数的用途是什么。
++ 两个项目都通过 pom.xml 引用相同的依赖项:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
我已经尝试过:
- 我什至尝试删除并下载 Users/../.m2/repository 中的所有依赖项
- 想知道是否过时的版本是原因......所以甚至试图用以下版本来指示官方 Maven 存储库网站上枚举的最新版本:
--
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
<version>2.6.3</version>
</dependency>
提前感谢您的建议。
I am developing Web Services with the following stacks:
- Spring Boot with Spring Security
- Maven -> add dependency from Maven Repo on pom.xml
- Vs Code
- Two Project (Two VS Code Windows): Production Development & Testing
- List item
Desc:
- In using 'SessionRegistry', when I try to see what is inside the 'SessionRegistry.class', the name of the parameters are as the image below:
Problem
Image_1.1) shows no indication on the purpose of the parameter as encircled on the image on the production project.
Stats on Testing Project, and this is my actual Expectation:
Expectation Image_1.2) has appropriate name of the parameter and it shows sense what is the purpose of the parameter.
++ Both of the Project is referring the same dependency thru pom.xml:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
What I have already tried:
- I have even tried to remove and download all of the dependencies at the Users/../.m2/repository
- Wondered if the outdated version was the cause... so even tried to indicate the latest version enumerated on official maven repository website with the follwoing version:
--
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
<version>2.6.3</version>
</dependency>
Awaiting for your advise with an advance grafulness.
发布评论
评论(1)
您尚未提供该库的源代码。如果没有源代码,IDE 仍将显示原型(因为可以从 .class 文件确定原型),但它会为参数指定名称,如您所见。
请参阅 VSCode 文档以了解如何附加源 jar。
You have not provided the source code for the library. Without the source, the IDE will still show the prototype (since that can be determined from the .class file) but it will make up names for the arguments, as you see.
Refer to the VSCode documentation to learn how to attach source jars.