How can I access the ApplicationContext from within a JAX-WS web service?

前端 未结 5 1401
暗喜
暗喜 2021-02-15 08:48

Similar to How can I access the ServletContext from within a JAX-WS web service?, is there a way to access applicationContext, easier than this?

import javax.ann         


        
5条回答
  •  滥情空心
    2021-02-15 09:19

    According to the JavaDoc for the SpringBeanAutowiringSupport class, see: http://docs.spring.io/autorepo/docs/spring-framework/3.0.x/api/org/springframework/web/context/support/SpringBeanAutowiringSupport.html

    Read the NOTE: at the end of the javadoc.

    The original question, may in fact, be the way that this should be implemented.

提交回复
热议问题