when to use application context in spring boot code example
Example 1: set spring context
server.servlet.context-path=/SOMETHING
Example 2: get spring application context
public class SpringBean {
@Autowired
private ApplicationContext appContext;
}