blob: d5771a7504f82eab8bc91c758f49fa4f1cd11fb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package com.example.spring;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class App {
public static void main(String[] args) {
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(new String[] {
"classpath:META-INF/spring/applicationContext.xml",});
MathsUser mathsUser = ctx.getBean(MathsUser.class);
mathsUser.doTask();
ctx.close();
}
}
|