简体   繁体   English

Spring MVC-Eclipse警告-验证消息

[英]Spring MVC - Eclipse Warning - Validation Message

I tried looking for an answer, but kept getting false positives since it's a "Validation Message" warning. 我尝试寻找答案,但由于它是“验证消息”警告,因此不断得到误报。 I have a jsp with this line 我这行有一个jsp

<a href="login">Member Home</a>

which maps to 映射到

@RequestMapping(value = "/login", method = RequestMethod.GET)
public String login(ModelMap model){
    return "home";
}

This setup works completely as intended with Spring Security intercepting the request, but I get the warning from Eclipse Spring Security截取请求后,此设置完全按预期工作,但是我从Eclipse得到警告

WebContent/login not found.

The warning makes sense, since I don't actually have a file called login, but am I missing a step that prevents the warning. 该警告很有意义,因为我实际上没有名为login的文件,但是我错过了阻止该警告的步骤。

I also realize that it's just a warning, and I can suck it up, but I really like to avoid that, especially if it leads to bigger problems later. 我也意识到这只是一个警告,我可以吸纳它,但是我真的很想避免这种情况,特别是如果以后导致更大的问题时。

Using: Spring 3.1.0 and Spring Security 3.1.2 on JBoss 7.1 使用:JBoss 7.1上的Spring 3.1.0和Spring Security 3.1.2

Edit: More complete warning: 编辑:更完整的警告:

Description                 Resource    Path            Location    Type
WebContent/login not found. index.jsp   /RMS/WebContent line 11     Validation Message

Line 11 being the html link code I posted above. 第11行是我上面发布的html链接代码。

By the type "Validation Message" Eclipse tells you the warning is not coming from any "external" plugin but from Eclipse itself (unless the plugin reports the wrong type). Eclipse通过“ Validation Message”类型告诉您警告不是来自任何“外部”插件,而是来自Eclipse本身(除非该插件报告了错误的类型)。 My gut feeling tells me that the source is the 'JSP Content Validator' (Eclipse or project preferences -> Validation). 我的直觉告诉我,源是“ JSP内容验证器”(Eclipse或项目首选项->验证)。 Unfortunately, it can only be switched off/on and not really configured. 不幸的是,只能关闭/打开它,而不能进行真正的配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM