File tree Expand file tree Collapse file tree
Commons/src/main/java/com/dade/ioc Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package com .dade .ioc ;
2+
3+ /**
4+ * Created by Dade on 2017/1/14.
5+ */
6+ public class BasicClass extends SuperClass {
7+
8+ public void baisc (){
9+ System .out .println ("basic!" );
10+ }
11+
12+ }
Original file line number Diff line number Diff line change 1+ package com .dade .ioc ;
2+
3+ /**
4+ * Created by Dade on 2017/1/14.
5+ */
6+ public class SuperClass {
7+
8+ public void say (){
9+ System .out .println ("super!" );
10+ }
11+
12+ }
Original file line number Diff line number Diff line change 88 */
99public class TestIOC {
1010
11+
12+ // static{
13+ // System.out.println("static!");
14+ // }
15+
1116 public static void main (String [] args ) {
12- AbstractXmlApplicationContext
17+ // System.out.println("main!");
18+ SuperClass superClass = new BasicClass ();
19+ superClass .say ();
1320 }
1421
1522}
You can’t perform that action at this time.
0 commit comments