Simply inject it..
@Autowired
private ApplicationContext appContext;
or implement this interface: ApplicationContextAware
More Related Contents:
- Why does Spring MVC respond with a 404 and report “No mapping found for HTTP request with URI […] in DispatcherServlet”?
- Howto get rid of ?
- How to implement pagination in Spring MVC 3 [closed]
- Why does Spring MVC need at least two contexts?
- Return a stream with Spring MVC’s ResponseEntity
- Spring – Modifying headers for every request after processing (in postHandle)
- Logging response body (HTML) from HttpServletResponse using Spring MVC HandlerInterceptorAdapter
- How to implement @RequestMapping custom properties
- Http Post request with content type application/x-www-form-urlencoded not working in Spring
- Filter order in spring-boot
- No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor
- Spring Web MVC – validate individual request params
- 404 error redirect in Spring with Java config
- JSON parameter in spring MVC controller
- Spring session-scoped beans (controllers) and references to services, in terms of serialization
- Why DispatcherServlet creates another application context?
- How to use multiple @RequestMapping annotations in spring?
- How to include js and CSS in JSP with spring MVC
- Parsing JSON in Spring MVC using Jackson JSON
- Multipart File upload Spring Boot
- Spring injection Into Servlet
- Spring 3.0 MVC binding Enums Case Sensitive
- How to return JSON data from spring Controller using @ResponseBody
- Autowired gives Null value in Custom Constraint validator
- Can you completely disable CORS support in Spring?
- Why SpringMVC Request method ‘GET’ not supported?
- How can I @Autowire a spring bean that was created from an external jar?
- Using @RequestParam for multipartfile is a right way?
- exception loading sessions from persistent storage
- Spring v3 no declaration can be found for element ‘mvc:resources’