spring application context configuration 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;
}