spring context start 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;
}
server.servlet.context-path=/SOMETHING
public class SpringBean {
@Autowired
private ApplicationContext appContext;
}