Skip to content

Commit 9f529cd

Browse files
committed
App.java
App.java
1 parent 8b224a9 commit 9f529cd

File tree

1 file changed

+17
-0
lines changed
  • spring-custom-event/src/main/java/com/hmkcode

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.hmkcode;
2+
3+
import org.springframework.context.support.ClassPathXmlApplicationContext;
4+
5+
import com.hmkcode.beans.Login;
6+
7+
8+
public class App
9+
{
10+
public static void main( String[] args )
11+
{
12+
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("spring-config.xml");
13+
14+
Login login = (Login) ctx.getBean("login");
15+
login.login();
16+
}
17+
}

0 commit comments

Comments
 (0)