2011-12-22 4 views
0

이 생성자는이 로그봄 보안 인스턴스 클래스

org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.s[email protected]198d9cf: defining beans 

및 생성자가 호출 한 후에는이 로그

org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource - Adding security method 
다시라고 불려

그게 무슨 일이야? ContextLoadListner 내 컨트롤러 번

봄 보안을로드

<?xml version="1.0" encoding="UTF-8"?> 
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> 

    <display-name>secyrity</display-name> 

    <filter> 
     <filter-name>springSecurityFilterChain</filter-name> 
     <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> 
     <init-param> 
      <param-name>contextAttribute</param-name> 
      <param-value>org.springframework.web.servlet.FrameworkServlet.CONTEXT.action</param-value> 
     </init-param> 
    </filter> 

     <filter> 
     <filter-name>encodingFilter</filter-name> 
     <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> 
     <init-param> 
      <param-name>encoding</param-name> 
      <param-value>utf-8</param-value> 
     </init-param> 
    </filter> 

    <filter-mapping> 
     <filter-name>encodingFilter</filter-name> 
     <url-pattern>*.do</url-pattern> 
    </filter-mapping> 

    <filter-mapping> 
     <filter-name>springSecurityFilterChain</filter-name> 
     <url-pattern>/restful/*</url-pattern> 
     <url-pattern>/oauth/*</url-pattern> 
    </filter-mapping> 

    <!-- The definition of the Root Spring Container shared by all Servlets and Filters --> 
    <context-param> 
     <param-name>contextConfigLocation</param-name> 
     <param-value>classpath*:com/my/secyrity/config/spring/context-*.xml</param-value> 
    </context-param> 

    <!-- Creates the Spring Container shared by all Servlets and Filters --> 
    <listener> 
     <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> 
    </listener> 

    <!-- Processes application requests --> 
    <servlet> 
     <servlet-name>action</servlet-name> 
     <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> 
     <init-param> 
      <param-name>contextConfigLocation</param-name> 
      <param-value>/WEB-INF/config/secyrity/springmvc/secyrity-*.xml</param-value> 
     </init-param> 
     <load-on-startup>1</load-on-startup> 
    </servlet> 

    <servlet-mapping> 
     <servlet-name>action</servlet-name> 
     <url-pattern>*.do</url-pattern> 
     <url-pattern>/restful/*</url-pattern> 
     <url-pattern>/oauth/*</url-pattern> 
    </servlet-mapping> 

    <welcome-file-list> 
     <welcome-file>index.jsp</welcome-file> 
    </welcome-file-list> 

    <login-config> 
     <auth-method>BASIC</auth-method> 
    </login-config> 

    <session-config> 
     <session-timeout>3600</session-timeout> 
    </session-config> 

    <!--  
    <error-page> 
     <error-code>404</error-code> 
     <location>/code404.jsp</location> 
    </error-page> 
    <error-page> 
     <error-code>500</error-code> 
     <location>/code500.jsp</location> 
    </error-page> 
    --> 
</web-app> 

아래처럼 콩

내 web.xml의 1!

를로드 할 때

감사

내가 언제 내 웹 응용 프로그램 몇 가지 문제를 찾을 수 내 조절기를 두 번 laod하십시오.

어떻게 내가 그것을 정상적인 행동이다, 두 번 호출됩니다

감사

답변

0

측면이 CGLIB 프록시, 프록시되는 클래스의 생성자를 사용하여 적용되는 문제를 해결할 수 7.6 Proxying mechanisms를 참조하십시오.