No change from "Bad Credential" ...
Introducing spring-security in Spring (not Spring-Boot) When I implemented login authentication, I was worried that when I output the error wording when I entered the wrong ID or path, only the characters set by default are displayed.
Bean definition of MessageResource Isn't it done on the DispatcherServlet side (servlet-context.xml)?
It worked when I did it on the ContextLoaderListner side (applicatinoContext.xml).
When running as a web application in Spring It is necessary to set the following two application contexts.
The two have a parent-child relationship, and the parent can refer to the child's bean, but not the other way around. So, if you DI the messageResource as a parent It occurs because it cannot be referenced by the child who is DI for spring-security.
When developing with Spring, it is difficult to solve without knowledge of the following major premises, so it is good to keep it down
What is a Servlet container? [Java Servlet container definition and file structure sever.xml and web.xml] (https://matome.naver.jp/odai/2142426284144340601)
What is application context? [Introduction to Spring MVC approaching from Servlet container] (https://matome.naver.jp/odai/2141415757276619101)
Recommended Posts