简体   繁体   English

春季安全登录错误

[英]Spring security login error

I just implemented a simple login functionality using spring it how ever worked with the eclipse in built browser but gives the following error in chrome and firefox. 我刚刚使用spring实现了一个简单的登录功能,它如何与内置浏览器中的eclipse一起工作,但是在chrome和firefox中出现以下错误。

HTTP Status 404 - /SpringLogin/welcome.jsp;jsessionid=8332D4F3D4709DCA37C87F30F1EA03D5
The requested resource (/SpringLogin/welcome.jsp;jsessionid=BEE789093FF79CB6B67F8DA368E8B3E4) is not available.

can you please tell me why it is happening? 你能告诉我为什么会这样吗?

PS: I have two projects SpringLogin and both of them had same project names and both had similar packages. PS:我有两个项目SpringLogin,它们都有相同的项目名称,并且都有相似的软件包。 Then neither of the projects worked properly and gave the above error. 然后,这两个项目都无法正常工作,并给出了以上错误。 How ever after I created another project with a different name and using different package names, it worked like magic. 在创建另一个使用不同名称和使用不同程序包名称的项目之后,它如何运作就像魔术一样。 I am guessing here that it may have been the problem. 我在这里猜测可能是问题所在。 But what is the logical answer that'll explain what happened there? 但是,能够解释在那里发生的事情的逻辑答案是什么?

you don't have being calling the correct URL 你没有被调用正确的URL

it seems that the context /SpringLogin/ does not exists anymore. 似乎上下文/ SpringLogin /不再存在。

Try /welcome.jsp or if you changed the name of application - try /newappname/welcome.jsp 尝试/welcome.jsp,或者如果您更改了应用程序的名称,请尝试/newappname/welcome.jsp

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

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