diff --git a/.classpath b/.classpath
deleted file mode 100644
index d2fbf7d..0000000
--- a/.classpath
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/.project b/.project
deleted file mode 100644
index 2b3b373..0000000
--- a/.project
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
- chapter01
-
-
-
-
-
- org.eclipse.wst.jsdt.core.javascriptValidator
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.wst.common.project.facet.core.builder
-
-
-
-
- org.eclipse.wst.validation.validationbuilder
-
-
-
-
-
- org.eclipse.jem.workbench.JavaEMFNature
- org.eclipse.wst.common.modulecore.ModuleCoreNature
- org.eclipse.wst.common.project.facet.core.nature
- org.eclipse.jdt.core.javanature
- org.eclipse.wst.jsdt.core.jsNature
-
-
diff --git a/.settings/.jsdtscope b/.settings/.jsdtscope
deleted file mode 100644
index 3a28de0..0000000
--- a/.settings/.jsdtscope
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index f42de36..0000000
--- a/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.compliance=1.7
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component
deleted file mode 100644
index e008ad2..0000000
--- a/.settings/org.eclipse.wst.common.component
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml
deleted file mode 100644
index f0f1f8f..0000000
--- a/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.container b/.settings/org.eclipse.wst.jsdt.ui.superType.container
deleted file mode 100644
index 3bd5d0a..0000000
--- a/.settings/org.eclipse.wst.jsdt.ui.superType.container
+++ /dev/null
@@ -1 +0,0 @@
-org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.name b/.settings/org.eclipse.wst.jsdt.ui.superType.name
deleted file mode 100644
index 05bd71b..0000000
--- a/.settings/org.eclipse.wst.jsdt.ui.superType.name
+++ /dev/null
@@ -1 +0,0 @@
-Window
\ No newline at end of file
diff --git a/README.txt b/README.txt
new file mode 100644
index 0000000..743e320
--- /dev/null
+++ b/README.txt
@@ -0,0 +1 @@
+新的分支
\ No newline at end of file
diff --git a/WebContent/META-INF/MANIFEST.MF b/WebContent/META-INF/MANIFEST.MF
deleted file mode 100644
index 254272e..0000000
--- a/WebContent/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-Class-Path:
-
diff --git a/WebContent/WEB-INF/classes/applicationContext.xml b/WebContent/WEB-INF/classes/applicationContext.xml
deleted file mode 100644
index 6aeac24..0000000
--- a/WebContent/WEB-INF/classes/applicationContext.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
-
-
-
- 李四
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/WebContent/WEB-INF/classes/com/spring/AnotationAssembly/Test.class b/WebContent/WEB-INF/classes/com/spring/AnotationAssembly/Test.class
deleted file mode 100644
index 6f79553..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/AnotationAssembly/Test.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/AnotationAssembly/UserController.class b/WebContent/WEB-INF/classes/com/spring/AnotationAssembly/UserController.class
deleted file mode 100644
index 5a531f8..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/AnotationAssembly/UserController.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/AnotationAssembly/UserDao.class b/WebContent/WEB-INF/classes/com/spring/AnotationAssembly/UserDao.class
deleted file mode 100644
index b1b3731..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/AnotationAssembly/UserDao.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/AnotationAssembly/UserDaoImpl.class b/WebContent/WEB-INF/classes/com/spring/AnotationAssembly/UserDaoImpl.class
deleted file mode 100644
index 0cb470a..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/AnotationAssembly/UserDaoImpl.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/AnotationAssembly/UserService.class b/WebContent/WEB-INF/classes/com/spring/AnotationAssembly/UserService.class
deleted file mode 100644
index 008dc05..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/AnotationAssembly/UserService.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/AnotationAssembly/UserServiceImpl.class b/WebContent/WEB-INF/classes/com/spring/AnotationAssembly/UserServiceImpl.class
deleted file mode 100644
index c5c64e4..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/AnotationAssembly/UserServiceImpl.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/AnotationAssembly/annotationAssembly.xml b/WebContent/WEB-INF/classes/com/spring/AnotationAssembly/annotationAssembly.xml
deleted file mode 100644
index f77e59b..0000000
--- a/WebContent/WEB-INF/classes/com/spring/AnotationAssembly/annotationAssembly.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
diff --git a/WebContent/WEB-INF/classes/com/spring/AutoAssembly/AutoAssembly.xml b/WebContent/WEB-INF/classes/com/spring/AutoAssembly/AutoAssembly.xml
deleted file mode 100644
index 3f97641..0000000
--- a/WebContent/WEB-INF/classes/com/spring/AutoAssembly/AutoAssembly.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
diff --git a/WebContent/WEB-INF/classes/com/spring/AutoAssembly/Test.class b/WebContent/WEB-INF/classes/com/spring/AutoAssembly/Test.class
deleted file mode 100644
index 0d43553..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/AutoAssembly/Test.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/AutoAssembly/UserController.class b/WebContent/WEB-INF/classes/com/spring/AutoAssembly/UserController.class
deleted file mode 100644
index 7709e31..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/AutoAssembly/UserController.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/AutoAssembly/UserDao.class b/WebContent/WEB-INF/classes/com/spring/AutoAssembly/UserDao.class
deleted file mode 100644
index c37ca7c..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/AutoAssembly/UserDao.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/AutoAssembly/UserDaoImpl.class b/WebContent/WEB-INF/classes/com/spring/AutoAssembly/UserDaoImpl.class
deleted file mode 100644
index 15c1cbd..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/AutoAssembly/UserDaoImpl.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/AutoAssembly/UserService.class b/WebContent/WEB-INF/classes/com/spring/AutoAssembly/UserService.class
deleted file mode 100644
index 70127ef..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/AutoAssembly/UserService.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/AutoAssembly/UserServiceImpl.class b/WebContent/WEB-INF/classes/com/spring/AutoAssembly/UserServiceImpl.class
deleted file mode 100644
index cee7dbd..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/AutoAssembly/UserServiceImpl.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/XMLAssembly/Test.class b/WebContent/WEB-INF/classes/com/spring/XMLAssembly/Test.class
deleted file mode 100644
index 10a657a..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/XMLAssembly/Test.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/XMLAssembly/User.class b/WebContent/WEB-INF/classes/com/spring/XMLAssembly/User.class
deleted file mode 100644
index 4cba420..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/XMLAssembly/User.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/XMLAssembly/XMLAssembly.xml b/WebContent/WEB-INF/classes/com/spring/XMLAssembly/XMLAssembly.xml
deleted file mode 100644
index 14107ec..0000000
--- a/WebContent/WEB-INF/classes/com/spring/XMLAssembly/XMLAssembly.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
- "XMLAssemblySetterInjectionValue1"
- "XMLAssemblySetterInjectionValue2"
-
-
-
-
-
-
-
-
-
- "XMLAssemblyConstructorInjectionValue1"
- "XMLAssemblyConstructorInjectionValue2"
-
-
-
-
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/CGLIBDynamicProxy/CglibProxy.class b/WebContent/WEB-INF/classes/com/spring/aop/CGLIBDynamicProxy/CglibProxy.class
deleted file mode 100644
index c86fc5c..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/aop/CGLIBDynamicProxy/CglibProxy.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/CGLIBDynamicProxy/MyAspect.class b/WebContent/WEB-INF/classes/com/spring/aop/CGLIBDynamicProxy/MyAspect.class
deleted file mode 100644
index 22c4c37..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/aop/CGLIBDynamicProxy/MyAspect.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/CGLIBDynamicProxy/Test.class b/WebContent/WEB-INF/classes/com/spring/aop/CGLIBDynamicProxy/Test.class
deleted file mode 100644
index 00a54c9..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/aop/CGLIBDynamicProxy/Test.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/CGLIBDynamicProxy/UserDao.class b/WebContent/WEB-INF/classes/com/spring/aop/CGLIBDynamicProxy/UserDao.class
deleted file mode 100644
index 3d60cfb..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/aop/CGLIBDynamicProxy/UserDao.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxy/JdkDynamicProxy.class b/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxy/JdkDynamicProxy.class
deleted file mode 100644
index a15edb7..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxy/JdkDynamicProxy.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxy/MyAspect.class b/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxy/MyAspect.class
deleted file mode 100644
index dca6e06..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxy/MyAspect.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxy/Test.class b/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxy/Test.class
deleted file mode 100644
index 94bf986..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxy/Test.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxy/UserDao.class b/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxy/UserDao.class
deleted file mode 100644
index ee190a3..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxy/UserDao.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxy/UserDaoImpl.class b/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxy/UserDaoImpl.class
deleted file mode 100644
index fd51846..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxy/UserDaoImpl.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/Aspect.class b/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/Aspect.class
deleted file mode 100644
index 91828e7..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/Aspect.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/Client.class b/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/Client.class
deleted file mode 100644
index 0644260..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/Client.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/IUsbSell.class b/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/IUsbSell.class
deleted file mode 100644
index 77126ec..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/IUsbSell.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/JdkDynamicProxy.class b/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/JdkDynamicProxy.class
deleted file mode 100644
index 2181931..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/JdkDynamicProxy.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/UsbKingFactory.class b/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/UsbKingFactory.class
deleted file mode 100644
index 0b159bf..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/UsbKingFactory.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/readme.txt b/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/readme.txt
deleted file mode 100644
index 088953e..0000000
--- a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/readme.txt
+++ /dev/null
@@ -1,65 +0,0 @@
-
-ʲôǶ̬
-ڳִйУʹJDKķƣָ̬ҪĿࡣ
- 仰˵̬һִjava㲻ֹļܴʵ
-
-˰ʾJDK̬ѧеĴ룬Ƶַhttps://www.bilibili.com/video/BV1ti4y177xu?p=9&spm_id_from=pageDriver
-
-̬:ھ̬Ŀܶʱʹö̬ܱ⾲̬еȱ㡣
-
-ŵ㣺
- 1̬Ŀ༴ʹܶ࣬Ժ١
- 2˽ӿеķʱӰࡣ
-
-ע⣺JDK̬ҪĿʵֽӿڣjavaϵҪ
-
-*********1java.lang.reflect.Method,ʾеķͨMethodִij
-
-****JDK̬ʵ****Ҫjava.lang.reflectеģ1InvocationHandler(ӿ) 2Method() 3Proxy()
-
- 1InvoationHandler(ӿ):ýӿнinvoke()һInvocationHandlerӿôɵĿ귽ǿܡ֮ǿĹҪдinvoke÷С
- ִͨĿӿеķѷĵ÷ɸôʵִ࣬ʵеinvoke()
-
- invoke()ԭ:public Object invoke(Object proxy, Method method, Object[] args)
- Object proxy:JDKĴJDKṩ踳ֵ
- Method method:Ŀеķ,JDKṩ踳ֵ
- Object[] argsĿзIJ,JDKṩ踳ֵ
-
- ҪɵĹܣ
-
- 1ҪĿ귽ִĿ귽еĹܡ
- 2ǿĿ귽ʱӶĹܡ
-
- 2Method():зֻҪjavaķԽMethodࡣ
-
- ãMethodͨinvoke()ִijĿеķ
-
- invoke()ԭͣpublic Object invoke(Object obj, Object... args)
- 1Object objҪִеĿ
- 2Object... argsִзҪIJ
-
- ע⣺invoke()InvocationHandlerӿinvoke()ֻͬѡ
-
- Object value = (Object)method.invoke(Ŀ,)
-
- ʾString returnV = (String) ask.invoke(target,"ӷֵ",18);
-
- ˵ask.invoke(target,"newʵ",20) === s.ask("newʵ", 20);
-
- 3Proxy():֮ǰnew constructor(),ʹProxyķnewʹá
-
- ̬newProxyInstance(),ãͬObject obj = new ClassConstructor();
-
- newProxyInstanceԭͣpublic static Object newProxyInstance(ClassLoader loader,Class>[] interfaces,InvocationHandler h)
-
- 1ClassLoader loader:,ڴмضʹ÷ȡĿClassLoader
- 2Class>[] interface:ӿ,ĿʵֵĽӿ,ҲǷȡġ
- 3InvocationHandler hԼдĴҪɵĹܡ
- 4ֵObjectӹķֵĿĴ
-
-ʵֶ̬IJ裺1ӿڣĿҪɵĹܡ
- 2Ŀʵֽӿڡ
- 3InvocationHandlerӿڵʵ࣬invoke()ɴĹܡ
- 3.1Ŀ귽
- 3.2ǿ
- 4ʹProxyľ̬ѷֵǿתΪӿ͡
\ No newline at end of file
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/reflect/HelloServiceImpl.class b/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/reflect/HelloServiceImpl.class
deleted file mode 100644
index 336a242..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/reflect/HelloServiceImpl.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/reflect/IHelloService.class b/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/reflect/IHelloService.class
deleted file mode 100644
index 92fcc66..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/reflect/IHelloService.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/reflect/Test.class b/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/reflect/Test.class
deleted file mode 100644
index f843208..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/aop/jdkDynamicProxyBilibili/reflect/Test.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/jdkStaticProxy/Client.class b/WebContent/WEB-INF/classes/com/spring/aop/jdkStaticProxy/Client.class
deleted file mode 100644
index fcc4f0e..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/aop/jdkStaticProxy/Client.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/jdkStaticProxy/IUsbSell.class b/WebContent/WEB-INF/classes/com/spring/aop/jdkStaticProxy/IUsbSell.class
deleted file mode 100644
index 7028d64..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/aop/jdkStaticProxy/IUsbSell.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/jdkStaticProxy/TaoBao.class b/WebContent/WEB-INF/classes/com/spring/aop/jdkStaticProxy/TaoBao.class
deleted file mode 100644
index 22dbdff..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/aop/jdkStaticProxy/TaoBao.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/jdkStaticProxy/UsbKingFactory.class b/WebContent/WEB-INF/classes/com/spring/aop/jdkStaticProxy/UsbKingFactory.class
deleted file mode 100644
index 8b4c7dd..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/aop/jdkStaticProxy/UsbKingFactory.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/jdkStaticProxy/WeiShang.class b/WebContent/WEB-INF/classes/com/spring/aop/jdkStaticProxy/WeiShang.class
deleted file mode 100644
index 1a43c3b..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/aop/jdkStaticProxy/WeiShang.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/aop/jdkStaticProxy/readme.txt b/WebContent/WEB-INF/classes/com/spring/aop/jdkStaticProxy/readme.txt
deleted file mode 100644
index dac4cbf..0000000
--- a/WebContent/WEB-INF/classes/com/spring/aop/jdkStaticProxy/readme.txt
+++ /dev/null
@@ -1,24 +0,0 @@
-̬
- 1ԼֹʵֵģԼһjava࣬ʾࡣ
- 2ҪĿȷġ
-ŵ㣺ʵּ⡣
-ȱ㣺1Ŀ࣬ҲҪɱࡣࡣ
- 2ӿӷʱᵼеĿʹҪи÷ʵ֡Ӱ칦չ
-ģûU̵Ϊ
- ɫ
- ͻࣺû
- |
- ̼ңijƷƵU
- |
- ңĿ
-
- ͻ Ŀ
- -----------
- ߵĹϵû----()---->|̼ң̼|----()---->
- -----------
- ע˴̼ҺͳһµĹܾǶU
-ʵֲ裺
- 1һӿڣU̵ķʾҺ̼Ҫ顣
- 2࣬Ҫʵֲ1Ľӿڡ
- 3̼(),ҲҪʵֲ1Ľӿڡ
- 4ͻ̼࣬ҵķһU̡
\ No newline at end of file
diff --git a/WebContent/WEB-INF/classes/com/spring/bean/scope/Scope.class b/WebContent/WEB-INF/classes/com/spring/bean/scope/Scope.class
deleted file mode 100644
index fc5c066..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/bean/scope/Scope.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/bean/scope/Test.class b/WebContent/WEB-INF/classes/com/spring/bean/scope/Test.class
deleted file mode 100644
index c313772..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/bean/scope/Test.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/instance/constuctor/NoParameterConstructor.class b/WebContent/WEB-INF/classes/com/spring/instance/constuctor/NoParameterConstructor.class
deleted file mode 100644
index 36edfaf..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/instance/constuctor/NoParameterConstructor.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/instance/constuctor/Test.class b/WebContent/WEB-INF/classes/com/spring/instance/constuctor/Test.class
deleted file mode 100644
index aa4b7ea..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/instance/constuctor/Test.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/instance/instanceFactory/Bean.class b/WebContent/WEB-INF/classes/com/spring/instance/instanceFactory/Bean.class
deleted file mode 100644
index c8297d9..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/instance/instanceFactory/Bean.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/instance/instanceFactory/CreateBeanFactory.class b/WebContent/WEB-INF/classes/com/spring/instance/instanceFactory/CreateBeanFactory.class
deleted file mode 100644
index 079dc57..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/instance/instanceFactory/CreateBeanFactory.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/instance/instanceFactory/Test.class b/WebContent/WEB-INF/classes/com/spring/instance/instanceFactory/Test.class
deleted file mode 100644
index c0a74cb..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/instance/instanceFactory/Test.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/instance/static_factory/Bean.class b/WebContent/WEB-INF/classes/com/spring/instance/static_factory/Bean.class
deleted file mode 100644
index ca2d162..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/instance/static_factory/Bean.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/instance/static_factory/CreateBeanFactory.class b/WebContent/WEB-INF/classes/com/spring/instance/static_factory/CreateBeanFactory.class
deleted file mode 100644
index 0959ad2..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/instance/static_factory/CreateBeanFactory.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/instance/static_factory/Test.class b/WebContent/WEB-INF/classes/com/spring/instance/static_factory/Test.class
deleted file mode 100644
index 5403f57..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/instance/static_factory/Test.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/ioc/Test.class b/WebContent/WEB-INF/classes/com/spring/ioc/Test.class
deleted file mode 100644
index afeea1c..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/ioc/Test.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/ioc/UserDao.class b/WebContent/WEB-INF/classes/com/spring/ioc/UserDao.class
deleted file mode 100644
index 51126f5..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/ioc/UserDao.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/ioc/UserDaoImpl.class b/WebContent/WEB-INF/classes/com/spring/ioc/UserDaoImpl.class
deleted file mode 100644
index 6aab6e1..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/ioc/UserDaoImpl.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/ioc/UserService.class b/WebContent/WEB-INF/classes/com/spring/ioc/UserService.class
deleted file mode 100644
index c03a72c..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/ioc/UserService.class and /dev/null differ
diff --git a/WebContent/WEB-INF/classes/com/spring/ioc/UserServiceImpl.class b/WebContent/WEB-INF/classes/com/spring/ioc/UserServiceImpl.class
deleted file mode 100644
index b2ecdeb..0000000
Binary files a/WebContent/WEB-INF/classes/com/spring/ioc/UserServiceImpl.class and /dev/null differ
diff --git a/WebContent/WEB-INF/lib/aopalliance-1.0.jar b/WebContent/WEB-INF/lib/aopalliance-1.0.jar
deleted file mode 100644
index 578b1a0..0000000
Binary files a/WebContent/WEB-INF/lib/aopalliance-1.0.jar and /dev/null differ
diff --git a/WebContent/WEB-INF/lib/commons-logging-1.2.jar b/WebContent/WEB-INF/lib/commons-logging-1.2.jar
deleted file mode 100644
index 93a3b9f..0000000
Binary files a/WebContent/WEB-INF/lib/commons-logging-1.2.jar and /dev/null differ
diff --git a/WebContent/WEB-INF/lib/hamcrest-core-1.3.jar b/WebContent/WEB-INF/lib/hamcrest-core-1.3.jar
deleted file mode 100644
index 9d5fe16..0000000
Binary files a/WebContent/WEB-INF/lib/hamcrest-core-1.3.jar and /dev/null differ
diff --git a/WebContent/WEB-INF/lib/junit-4.12.jar b/WebContent/WEB-INF/lib/junit-4.12.jar
deleted file mode 100644
index 3a7fc26..0000000
Binary files a/WebContent/WEB-INF/lib/junit-4.12.jar and /dev/null differ
diff --git a/WebContent/WEB-INF/lib/spring-aop-4.3.6.RELEASE.jar b/WebContent/WEB-INF/lib/spring-aop-4.3.6.RELEASE.jar
deleted file mode 100644
index 72348a1..0000000
Binary files a/WebContent/WEB-INF/lib/spring-aop-4.3.6.RELEASE.jar and /dev/null differ
diff --git a/WebContent/WEB-INF/lib/spring-beans-4.3.6.RELEASE.jar b/WebContent/WEB-INF/lib/spring-beans-4.3.6.RELEASE.jar
deleted file mode 100644
index 0a8fb05..0000000
Binary files a/WebContent/WEB-INF/lib/spring-beans-4.3.6.RELEASE.jar and /dev/null differ
diff --git a/WebContent/WEB-INF/lib/spring-context-4.3.6.RELEASE.jar b/WebContent/WEB-INF/lib/spring-context-4.3.6.RELEASE.jar
deleted file mode 100644
index 363d8e4..0000000
Binary files a/WebContent/WEB-INF/lib/spring-context-4.3.6.RELEASE.jar and /dev/null differ
diff --git a/WebContent/WEB-INF/lib/spring-core-4.3.6.RELEASE.jar b/WebContent/WEB-INF/lib/spring-core-4.3.6.RELEASE.jar
deleted file mode 100644
index 17d0eac..0000000
Binary files a/WebContent/WEB-INF/lib/spring-core-4.3.6.RELEASE.jar and /dev/null differ
diff --git a/WebContent/WEB-INF/lib/spring-expression-4.3.6.RELEASE.jar b/WebContent/WEB-INF/lib/spring-expression-4.3.6.RELEASE.jar
deleted file mode 100644
index f3536fe..0000000
Binary files a/WebContent/WEB-INF/lib/spring-expression-4.3.6.RELEASE.jar and /dev/null differ
diff --git a/src/com/spring/aop/XMLAssembly/IUserDao.java b/XMLAssembly/IUserDao.java
similarity index 100%
rename from src/com/spring/aop/XMLAssembly/IUserDao.java
rename to XMLAssembly/IUserDao.java
diff --git a/src/com/spring/aop/XMLAssembly/MyAspect.java b/XMLAssembly/MyAspect.java
similarity index 100%
rename from src/com/spring/aop/XMLAssembly/MyAspect.java
rename to XMLAssembly/MyAspect.java
diff --git a/src/com/spring/aop/XMLAssembly/Test.java b/XMLAssembly/Test.java
similarity index 100%
rename from src/com/spring/aop/XMLAssembly/Test.java
rename to XMLAssembly/Test.java
diff --git a/src/com/spring/aop/XMLAssembly/UserDaoImpl.java b/XMLAssembly/UserDaoImpl.java
similarity index 100%
rename from src/com/spring/aop/XMLAssembly/UserDaoImpl.java
rename to XMLAssembly/UserDaoImpl.java
diff --git a/src/com/spring/aop/XMLAssembly/aop.xml b/XMLAssembly/aop.xml
similarity index 100%
rename from src/com/spring/aop/XMLAssembly/aop.xml
rename to XMLAssembly/aop.xml
diff --git a/src/com/spring/aop/XMLAssembly/readme.txt b/XMLAssembly/readme.txt
similarity index 100%
rename from src/com/spring/aop/XMLAssembly/readme.txt
rename to XMLAssembly/readme.txt
diff --git a/com/sun/proxy/$Proxy0.class b/com/sun/proxy/$Proxy0.class
deleted file mode 100644
index 91e94db..0000000
Binary files a/com/sun/proxy/$Proxy0.class and /dev/null differ
diff --git "a/com/sun/proxy/\345\217\215\345\260\204\346\200\235\347\273\264\345\233\276.eddx" "b/com/sun/proxy/\345\217\215\345\260\204\346\200\235\347\273\264\345\233\276.eddx"
deleted file mode 100644
index 2effa64..0000000
Binary files "a/com/sun/proxy/\345\217\215\345\260\204\346\200\235\347\273\264\345\233\276.eddx" and /dev/null differ
diff --git a/src/applicationContext.xml b/src/applicationContext.xml
deleted file mode 100644
index 6aeac24..0000000
--- a/src/applicationContext.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
-
-
-
- 李四
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/com/spring/AnotationAssembly/Test.java b/src/com/spring/AnotationAssembly/Test.java
deleted file mode 100644
index 2a87377..0000000
--- a/src/com/spring/AnotationAssembly/Test.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.spring.AnotationAssembly;
-
-import org.springframework.context.ApplicationContext;
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-public class Test {
- public static void main(String[] args) {
- String path = "com/spring/AnotationAssembly/annotationAssembly.xml";
- ApplicationContext containner = new ClassPathXmlApplicationContext(path);
- UserController userController = (UserController)containner.getBean("userController");
- userController.save();
- }
-}
diff --git a/src/com/spring/AnotationAssembly/UserController.java b/src/com/spring/AnotationAssembly/UserController.java
deleted file mode 100644
index a825c49..0000000
--- a/src/com/spring/AnotationAssembly/UserController.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.spring.AnotationAssembly;
-
-import javax.annotation.Resource;
-
-import org.springframework.stereotype.Controller;
-
-@Controller("userController")
-public class UserController{
- @Resource(name = "userService")
- private UserService userService;
- public void save() {
- // TODO Auto-generated method stub
- this.userService.save();
- System.out.println("UserController棡");
- }
-
-}
diff --git a/src/com/spring/AnotationAssembly/UserDao.java b/src/com/spring/AnotationAssembly/UserDao.java
deleted file mode 100644
index 75906b1..0000000
--- a/src/com/spring/AnotationAssembly/UserDao.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package com.spring.AnotationAssembly;
-
-public interface UserDao {
- public void save();
-}
diff --git a/src/com/spring/AnotationAssembly/UserDaoImpl.java b/src/com/spring/AnotationAssembly/UserDaoImpl.java
deleted file mode 100644
index 66fcdf4..0000000
--- a/src/com/spring/AnotationAssembly/UserDaoImpl.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.spring.AnotationAssembly;
-
-import org.springframework.stereotype.Repository;
-
-@Repository("userDao")
-public class UserDaoImpl implements UserDao {
-
- @Override
- public void save() {
- // TODO Auto-generated method stub
- System.out.println("UserDao棡");
- }
-
-}
diff --git a/src/com/spring/AnotationAssembly/UserService.java b/src/com/spring/AnotationAssembly/UserService.java
deleted file mode 100644
index 70ce081..0000000
--- a/src/com/spring/AnotationAssembly/UserService.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package com.spring.AnotationAssembly;
-
-public interface UserService {
- public void save();
-}
diff --git a/src/com/spring/AnotationAssembly/UserServiceImpl.java b/src/com/spring/AnotationAssembly/UserServiceImpl.java
deleted file mode 100644
index 070579d..0000000
--- a/src/com/spring/AnotationAssembly/UserServiceImpl.java
+++ /dev/null
@@ -1,19 +0,0 @@
-package com.spring.AnotationAssembly;
-
-
-import javax.annotation.Resource;
-
-import org.springframework.stereotype.Service;
-
-@Service("userService")
-public class UserServiceImpl implements UserService {
- @Resource(name = "userDao")
- private UserDao userDao;
- @Override
- public void save() {
- // TODO Auto-generated method stub
- this.userDao.save();
- System.out.println("UserService棡");
- }
-
-}
diff --git a/src/com/spring/AnotationAssembly/annotationAssembly.xml b/src/com/spring/AnotationAssembly/annotationAssembly.xml
deleted file mode 100644
index f77e59b..0000000
--- a/src/com/spring/AnotationAssembly/annotationAssembly.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
diff --git a/src/com/spring/AutoAssembly/AutoAssembly.xml b/src/com/spring/AutoAssembly/AutoAssembly.xml
deleted file mode 100644
index 3f97641..0000000
--- a/src/com/spring/AutoAssembly/AutoAssembly.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
diff --git a/src/com/spring/AutoAssembly/Test.java b/src/com/spring/AutoAssembly/Test.java
deleted file mode 100644
index 99a0f7c..0000000
--- a/src/com/spring/AutoAssembly/Test.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.spring.AutoAssembly;
-
-import org.springframework.context.ApplicationContext;
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-public class Test {
- public static void main(String[] args) {
- String path = "com/spring/AutoAssembly/AutoAssembly.xml";
- ApplicationContext containner = new ClassPathXmlApplicationContext(path);
- UserController userController = (UserController)containner.getBean("userController");
- userController.save();
- }
-}
diff --git a/src/com/spring/AutoAssembly/UserController.java b/src/com/spring/AutoAssembly/UserController.java
deleted file mode 100644
index b7cddcc..0000000
--- a/src/com/spring/AutoAssembly/UserController.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.spring.AutoAssembly;
-
-public class UserController{
- private UserService userService;
- public void save() {
- // TODO Auto-generated method stub
- this.userService.save();
- System.out.println("UserController棡");
- }
- public void setUserService(UserService userService) {
- this.userService = userService;
- }
-}
diff --git a/src/com/spring/AutoAssembly/UserDao.java b/src/com/spring/AutoAssembly/UserDao.java
deleted file mode 100644
index 38e7aef..0000000
--- a/src/com/spring/AutoAssembly/UserDao.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package com.spring.AutoAssembly;
-
-public interface UserDao {
- public void save();
-}
diff --git a/src/com/spring/AutoAssembly/UserDaoImpl.java b/src/com/spring/AutoAssembly/UserDaoImpl.java
deleted file mode 100644
index a89a7ee..0000000
--- a/src/com/spring/AutoAssembly/UserDaoImpl.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package com.spring.AutoAssembly;
-
-
-public class UserDaoImpl implements UserDao {
-
- @Override
- public void save() {
- // TODO Auto-generated method stub
- System.out.println("UserDao棡");
- }
-
-}
diff --git a/src/com/spring/AutoAssembly/UserService.java b/src/com/spring/AutoAssembly/UserService.java
deleted file mode 100644
index ab2f6f1..0000000
--- a/src/com/spring/AutoAssembly/UserService.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package com.spring.AutoAssembly;
-
-public interface UserService {
- public void save();
-}
diff --git a/src/com/spring/AutoAssembly/UserServiceImpl.java b/src/com/spring/AutoAssembly/UserServiceImpl.java
deleted file mode 100644
index 45092ad..0000000
--- a/src/com/spring/AutoAssembly/UserServiceImpl.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.spring.AutoAssembly;
-
-public class UserServiceImpl implements UserService {
- private UserDao userDao;
- @Override
- public void save() {
- // TODO Auto-generated method stub
- this.userDao.save();
- System.out.println("UserService棡");
- }
- public void setUserDao(UserDao userDao) {
- this.userDao = userDao;
- }
-}
diff --git a/src/com/spring/XMLAssembly/Test.java b/src/com/spring/XMLAssembly/Test.java
deleted file mode 100644
index 58713e4..0000000
--- a/src/com/spring/XMLAssembly/Test.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package com.spring.XMLAssembly;
-
-import org.springframework.context.ApplicationContext;
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-/**
- * XMLװַʽ
- * 1setע
- * 2ע
- * */
-public class Test {
- public static void main(String[] args){
- String path = "com/spring/XMLAssembly/XMLAssembly.xml";
- ApplicationContext applicationContext = new ClassPathXmlApplicationContext(path);
- User user1 = (User)applicationContext.getBean("user1");
- System.out.println(user1);
- User user2 = (User)applicationContext.getBean("user2");
- System.out.println(user2);
- }
-}
diff --git a/src/com/spring/XMLAssembly/User.java b/src/com/spring/XMLAssembly/User.java
deleted file mode 100644
index 064c05e..0000000
--- a/src/com/spring/XMLAssembly/User.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package com.spring.XMLAssembly;
-
-import java.util.List;
-
-public class User {
- private String userName;
- private Integer password;
- private List list;
- public User(String username,Integer password,List list){
- super();
- this.userName = username;
- this.password = password;
- this.list = list;
- }
- public void setUserName(String userName) {
- this.userName = userName;
- }
- public void setPassword(Integer password) {
- this.password = password;
- }
- public void setList(List list) {
- this.list = list;
- }
- public User() {
- super();
- // TODO Auto-generated constructor stub
- }
- @Override
- public String toString() {
- return "User [userName=" + userName + ", password=" + password
- + ", list=" + list + "]";
- }
-}
diff --git a/src/com/spring/XMLAssembly/XMLAssembly.xml b/src/com/spring/XMLAssembly/XMLAssembly.xml
deleted file mode 100644
index 14107ec..0000000
--- a/src/com/spring/XMLAssembly/XMLAssembly.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
- "XMLAssemblySetterInjectionValue1"
- "XMLAssemblySetterInjectionValue2"
-
-
-
-
-
-
-
-
-
- "XMLAssemblyConstructorInjectionValue1"
- "XMLAssemblyConstructorInjectionValue2"
-
-
-
-
diff --git a/src/com/spring/aop/CGLIBDynamicProxy/CglibProxy.java b/src/com/spring/aop/CGLIBDynamicProxy/CglibProxy.java
deleted file mode 100644
index cedead1..0000000
--- a/src/com/spring/aop/CGLIBDynamicProxy/CglibProxy.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package com.spring.aop.CGLIBDynamicProxy;
-
-import java.lang.reflect.Method;
-
-import org.springframework.cglib.proxy.Enhancer;
-import org.springframework.cglib.proxy.MethodInterceptor;
-import org.springframework.cglib.proxy.MethodProxy;
-
-public class CglibProxy implements MethodInterceptor {
- //
- public Object createProxy(Object targetClass){
- Enhancer targetChild = new Enhancer();
- targetChild.setSuperclass(targetClass.getClass());//ôĸ
- targetChild.setCallback(this);//ִеķָǰǿ
- return targetChild.create();//
- }
- @Override
- public Object intercept(Object proxy, Method method, Object[] args,
- MethodProxy methodProxy) throws Throwable {
- MyAspect aspect = new MyAspect();
- aspect.check();
- Object obj = methodProxy.invokeSuper(proxy, args);
- aspect.log();
- return obj;
- }
-
-}
diff --git a/src/com/spring/aop/CGLIBDynamicProxy/MyAspect.java b/src/com/spring/aop/CGLIBDynamicProxy/MyAspect.java
deleted file mode 100644
index c905a93..0000000
--- a/src/com/spring/aop/CGLIBDynamicProxy/MyAspect.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.spring.aop.CGLIBDynamicProxy;
-//ࣺпadvice(ǿ)
-public class MyAspect {
- public void check(){
- System.out.println("ģȨ");
- }
- public void log(){
- System.out.println("ģ־¼");
- }
-}
diff --git a/src/com/spring/aop/CGLIBDynamicProxy/Test.java b/src/com/spring/aop/CGLIBDynamicProxy/Test.java
deleted file mode 100644
index 90ae5bd..0000000
--- a/src/com/spring/aop/CGLIBDynamicProxy/Test.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.spring.aop.CGLIBDynamicProxy;
-
-public class Test {
-
- public static void main(String[] args) {
- //
- CglibProxy proxy = new CglibProxy();
- //target class
- UserDao userDao = new UserDao();
- //create target class proxy object
- UserDao proxyObject = (UserDao)proxy.createProxy(userDao);
- //use proxy object invoke method
- proxyObject.addUser("");
- proxyObject.deleteUser();
- }
-
-}
diff --git a/src/com/spring/aop/CGLIBDynamicProxy/UserDao.java b/src/com/spring/aop/CGLIBDynamicProxy/UserDao.java
deleted file mode 100644
index 6f69db4..0000000
--- a/src/com/spring/aop/CGLIBDynamicProxy/UserDao.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.spring.aop.CGLIBDynamicProxy;
-//Ŀ
-public class UserDao {
- public void addUser(String name){
- System.out.println("û:"+name);
- }
- public void deleteUser(){
- System.out.println("ɾû");
- }
-}
diff --git a/src/com/spring/aop/jdkDynamicProxy/JdkDynamicProxy.java b/src/com/spring/aop/jdkDynamicProxy/JdkDynamicProxy.java
deleted file mode 100644
index 1570df3..0000000
--- a/src/com/spring/aop/jdkDynamicProxy/JdkDynamicProxy.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package com.spring.aop.jdkDynamicProxy;
-
-import java.lang.reflect.InvocationHandler;
-import java.lang.reflect.Method;
-import java.lang.reflect.Proxy;
-
-public class JdkDynamicProxy implements InvocationHandler {
- //1Ŀ
- private Object obj;
- //2
- public Object createProxy(Object obj){
- this.obj = obj;
- //2.1 ȡ
- ClassLoader classLoader = JdkDynamicProxy.class.getClassLoader();
- //2.2 ȡнӿ
- Class>[] clazz = obj.getClass().getInterfaces();
- //2.3 ʹô࣬ǿصǴĶ
- return Proxy.newProxyInstance(classLoader, clazz, this);
- }
-
- public Object invoke(Object proxy, Method method, Object[] args)
- throws Throwable {
- //
- MyAspect aspect = new MyAspect();
- //ǰǿ
- aspect.check();
- //Ŀϵ÷
- Object returnValue = method.invoke(obj, args);
- //ǿ
- aspect.log();
- return returnValue;
- }
-
-}
diff --git a/src/com/spring/aop/jdkDynamicProxy/MyAspect.java b/src/com/spring/aop/jdkDynamicProxy/MyAspect.java
deleted file mode 100644
index 89e0ed3..0000000
--- a/src/com/spring/aop/jdkDynamicProxy/MyAspect.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.spring.aop.jdkDynamicProxy;
-//ࣺпadvice(ǿ)
-public class MyAspect {
- public void check(){
- System.out.println("ģȨ");
- }
- public void log(){
- System.out.println("ģ־¼");
- }
-}
diff --git a/src/com/spring/aop/jdkDynamicProxy/Test.java b/src/com/spring/aop/jdkDynamicProxy/Test.java
deleted file mode 100644
index d6f5cea..0000000
--- a/src/com/spring/aop/jdkDynamicProxy/Test.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package com.spring.aop.jdkDynamicProxy;
-
-public class Test {
- public static void main(String[] args) {
- System.getProperties().put("sun.misc.ProxyGenerator.saveGeneratedFiles", "true");
- //
- JdkDynamicProxy jdkProxy = new JdkDynamicProxy();
- //Ŀ
- UserDao userDao = new UserDaoImpl();
- //ӴлȡǿĿ
- UserDao userDao1 = (UserDao) jdkProxy.createProxy(userDao);
- //ִз
- userDao1.addUser("");
- userDao1.deleteUser();
- }
-}
diff --git a/src/com/spring/aop/jdkDynamicProxy/UserDao.java b/src/com/spring/aop/jdkDynamicProxy/UserDao.java
deleted file mode 100644
index e7a4ba5..0000000
--- a/src/com/spring/aop/jdkDynamicProxy/UserDao.java
+++ /dev/null
@@ -1,6 +0,0 @@
-package com.spring.aop.jdkDynamicProxy;
-
-public interface UserDao {
- public void addUser(String name);
- public void deleteUser();
-}
diff --git a/src/com/spring/aop/jdkDynamicProxy/UserDaoImpl.java b/src/com/spring/aop/jdkDynamicProxy/UserDaoImpl.java
deleted file mode 100644
index 63ade9f..0000000
--- a/src/com/spring/aop/jdkDynamicProxy/UserDaoImpl.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.spring.aop.jdkDynamicProxy;
-
-public class UserDaoImpl implements UserDao{
- @Override
- public void addUser(String name) {
- // TODO Auto-generated method stub
- System.out.println("û"+"----"+name);
- }
- @Override
- public void deleteUser() {
- // TODO Auto-generated method stub
- System.out.println("ɾû");
- }
-}
diff --git a/src/com/spring/aop/jdkDynamicProxyBilibili/Aspect.java b/src/com/spring/aop/jdkDynamicProxyBilibili/Aspect.java
deleted file mode 100644
index 07cb50d..0000000
--- a/src/com/spring/aop/jdkDynamicProxyBilibili/Aspect.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.spring.aop.jdkDynamicProxyBilibili;
-
-
-public class Aspect {
- public float totalPrice(Object[] amount,float price){
- if(amount != null){
- price = (Integer)amount[0] * price;
- }
- return price;
- }
-}
diff --git a/src/com/spring/aop/jdkDynamicProxyBilibili/Client.java b/src/com/spring/aop/jdkDynamicProxyBilibili/Client.java
deleted file mode 100644
index 1e8d8b6..0000000
--- a/src/com/spring/aop/jdkDynamicProxyBilibili/Client.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.spring.aop.jdkDynamicProxyBilibili;
-
-public class Client {
-
-
- public static void main(String[] args) {
- IUsbSell targetObj = new UsbKingFactory();
- JdkDynamicProxy proxy = new JdkDynamicProxy();
- IUsbSell proxyObj = (IUsbSell)proxy.createProxy(targetObj);
- float price = proxyObj.sell(5000);
- System.out.println("ܼۣ"+price);
- }
-
-}
diff --git a/src/com/spring/aop/jdkDynamicProxyBilibili/IUsbSell.java b/src/com/spring/aop/jdkDynamicProxyBilibili/IUsbSell.java
deleted file mode 100644
index dd3e347..0000000
--- a/src/com/spring/aop/jdkDynamicProxyBilibili/IUsbSell.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package com.spring.aop.jdkDynamicProxyBilibili;
-//Ŀӿ
-public interface IUsbSell {
- public float sell(int amount);
-}
diff --git a/src/com/spring/aop/jdkDynamicProxyBilibili/JdkDynamicProxy.java b/src/com/spring/aop/jdkDynamicProxyBilibili/JdkDynamicProxy.java
deleted file mode 100644
index 9036233..0000000
--- a/src/com/spring/aop/jdkDynamicProxyBilibili/JdkDynamicProxy.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package com.spring.aop.jdkDynamicProxyBilibili;
-
-import java.lang.reflect.InvocationHandler;
-import java.lang.reflect.Method;
-import java.lang.reflect.Proxy;
-//ɴĹ(1Ŀ귽 2ǿ)
-public class JdkDynamicProxy implements InvocationHandler {
- private IUsbSell targetObj;
- public Object createProxy(IUsbSell obj){
- this.targetObj = obj;
- ClassLoader classLoader = this.getClass().getClassLoader();
- Class>[] interfaces = obj.getClass().getInterfaces();
- System.out.println(interfaces);
- return Proxy.newProxyInstance(classLoader, interfaces, this);
- }
- @Override
- public Object invoke(Object proxy, Method method, Object[] args)
- throws Throwable {
- Aspect a = new Aspect();
- float price = (float) method.invoke(targetObj, args);
- price = price + 25.0f;
- return a.totalPrice(args, price);
- }
-
-}
diff --git a/src/com/spring/aop/jdkDynamicProxyBilibili/UsbKingFactory.java b/src/com/spring/aop/jdkDynamicProxyBilibili/UsbKingFactory.java
deleted file mode 100644
index 88e4970..0000000
--- a/src/com/spring/aop/jdkDynamicProxyBilibili/UsbKingFactory.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.spring.aop.jdkDynamicProxyBilibili;
-//Ŀ
-public class UsbKingFactory implements IUsbSell {
-
- @Override
- public float sell(int amount) {
-
- return 85.0f;
- }
-
-}
diff --git a/src/com/spring/aop/jdkDynamicProxyBilibili/readme.txt b/src/com/spring/aop/jdkDynamicProxyBilibili/readme.txt
deleted file mode 100644
index 088953e..0000000
--- a/src/com/spring/aop/jdkDynamicProxyBilibili/readme.txt
+++ /dev/null
@@ -1,65 +0,0 @@
-
-ʲôǶ̬
-ڳִйУʹJDKķƣָ̬ҪĿࡣ
- 仰˵̬һִjava㲻ֹļܴʵ
-
-˰ʾJDK̬ѧеĴ룬Ƶַhttps://www.bilibili.com/video/BV1ti4y177xu?p=9&spm_id_from=pageDriver
-
-̬:ھ̬Ŀܶʱʹö̬ܱ⾲̬еȱ㡣
-
-ŵ㣺
- 1̬Ŀ༴ʹܶ࣬Ժ١
- 2˽ӿеķʱӰࡣ
-
-ע⣺JDK̬ҪĿʵֽӿڣjavaϵҪ
-
-*********1java.lang.reflect.Method,ʾеķͨMethodִij
-
-****JDK̬ʵ****Ҫjava.lang.reflectеģ1InvocationHandler(ӿ) 2Method() 3Proxy()
-
- 1InvoationHandler(ӿ):ýӿнinvoke()һInvocationHandlerӿôɵĿ귽ǿܡ֮ǿĹҪдinvoke÷С
- ִͨĿӿеķѷĵ÷ɸôʵִ࣬ʵеinvoke()
-
- invoke()ԭ:public Object invoke(Object proxy, Method method, Object[] args)
- Object proxy:JDKĴJDKṩ踳ֵ
- Method method:Ŀеķ,JDKṩ踳ֵ
- Object[] argsĿзIJ,JDKṩ踳ֵ
-
- ҪɵĹܣ
-
- 1ҪĿ귽ִĿ귽еĹܡ
- 2ǿĿ귽ʱӶĹܡ
-
- 2Method():зֻҪjavaķԽMethodࡣ
-
- ãMethodͨinvoke()ִijĿеķ
-
- invoke()ԭͣpublic Object invoke(Object obj, Object... args)
- 1Object objҪִеĿ
- 2Object... argsִзҪIJ
-
- ע⣺invoke()InvocationHandlerӿinvoke()ֻͬѡ
-
- Object value = (Object)method.invoke(Ŀ,)
-
- ʾString returnV = (String) ask.invoke(target,"ӷֵ",18);
-
- ˵ask.invoke(target,"newʵ",20) === s.ask("newʵ", 20);
-
- 3Proxy():֮ǰnew constructor(),ʹProxyķnewʹá
-
- ̬newProxyInstance(),ãͬObject obj = new ClassConstructor();
-
- newProxyInstanceԭͣpublic static Object newProxyInstance(ClassLoader loader,Class>[] interfaces,InvocationHandler h)
-
- 1ClassLoader loader:,ڴмضʹ÷ȡĿClassLoader
- 2Class>[] interface:ӿ,ĿʵֵĽӿ,ҲǷȡġ
- 3InvocationHandler hԼдĴҪɵĹܡ
- 4ֵObjectӹķֵĿĴ
-
-ʵֶ̬IJ裺1ӿڣĿҪɵĹܡ
- 2Ŀʵֽӿڡ
- 3InvocationHandlerӿڵʵ࣬invoke()ɴĹܡ
- 3.1Ŀ귽
- 3.2ǿ
- 4ʹProxyľ̬ѷֵǿתΪӿ͡
\ No newline at end of file
diff --git a/src/com/spring/aop/jdkDynamicProxyBilibili/reflect/HelloServiceImpl.java b/src/com/spring/aop/jdkDynamicProxyBilibili/reflect/HelloServiceImpl.java
deleted file mode 100644
index fd23a9c..0000000
--- a/src/com/spring/aop/jdkDynamicProxyBilibili/reflect/HelloServiceImpl.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package com.spring.aop.jdkDynamicProxyBilibili.reflect;
-
-public class HelloServiceImpl implements IHelloService {
- @Override
- public void sayHello(String name) {
- System.out.println("ã"+name);
-
- }
-
- @Override
- public String ask(String name, int age) {
-
- return "˵:"+name+"\040䣺"+age;
- }
-}
diff --git a/src/com/spring/aop/jdkDynamicProxyBilibili/reflect/IHelloService.java b/src/com/spring/aop/jdkDynamicProxyBilibili/reflect/IHelloService.java
deleted file mode 100644
index f1a5c76..0000000
--- a/src/com/spring/aop/jdkDynamicProxyBilibili/reflect/IHelloService.java
+++ /dev/null
@@ -1,6 +0,0 @@
-package com.spring.aop.jdkDynamicProxyBilibili.reflect;
-
-public interface IHelloService {
- public void sayHello(String name);
- public String ask(String name,int age);
-}
diff --git a/src/com/spring/aop/jdkDynamicProxyBilibili/reflect/Test.java b/src/com/spring/aop/jdkDynamicProxyBilibili/reflect/Test.java
deleted file mode 100644
index 336edb2..0000000
--- a/src/com/spring/aop/jdkDynamicProxyBilibili/reflect/Test.java
+++ /dev/null
@@ -1,44 +0,0 @@
-package com.spring.aop.jdkDynamicProxyBilibili.reflect;
-
-import java.lang.reflect.Method;
-
-
-public class Test {
-
- /**
- * @param args
- * @throws ClassNotFoundException
- * @throws SecurityException
- * @throws NoSuchMethodException
- */
- public static void main(String[] args) throws Exception{
- //÷-->ʵ-->÷-->ִз
- IHelloService s = new HelloServiceImpl();
- s.sayHello("newʵ");
- s.ask("newʵ", 20);
-
- //÷Ƶ÷
- IHelloService target = new HelloServiceImpl();
- //ͨӿڻȡΪsayHelloMethod
- Method sayHello = IHelloService.class.getMethod("sayHello", String.class);
- /**
- * invokeMethodеһʾִзĵ
- * public Object invoke(Object obj, Object... args){}
- *
- * 1Object obj,ʾģҪִķ
- * 2Object... args,ִʱIJֵ,ǰ˳дҲֱʹö
- * ֵObjectִкķֵ
- * ͨMethodִsayHello()ĵ
- * */
- sayHello.invoke(target, "\r");
- Method ask = IHelloService.class.getMethod("ask",String.class,int.class);
- String returnV = (String) ask.invoke(target,"ӷֵ",18);
- System.out.println(returnV);
- }
- @org.junit.Test
- public void test(){
- System.out.println("getClass()-->"+new Test().getClass());
- System.out.println("this.getClass()-->"+this.getClass());
- System.out.println(".class-->"+Test.class);
- }
-}
diff --git a/src/com/spring/aop/jdkStaticProxy/Client.java b/src/com/spring/aop/jdkStaticProxy/Client.java
deleted file mode 100644
index 73c6db1..0000000
--- a/src/com/spring/aop/jdkStaticProxy/Client.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package com.spring.aop.jdkStaticProxy;
-
-public class Client {
- public static void main(String[] args) {
- TaoBao taobao = new TaoBao();
- float price = taobao.sell(1);
- System.out.println("ͨԱ̼ҹU̵ۣ"+price);
- WeiShang ws = new WeiShang();
- float price1 = ws.sell(1);
- System.out.println("̼ͨҹU̵ۣ"+price1);
- }
-}
diff --git a/src/com/spring/aop/jdkStaticProxy/IUsbSell.java b/src/com/spring/aop/jdkStaticProxy/IUsbSell.java
deleted file mode 100644
index 365fbc2..0000000
--- a/src/com/spring/aop/jdkStaticProxy/IUsbSell.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.spring.aop.jdkStaticProxy;
-
-//ʾ,ҡ̼ҶҪĹܡ
-public interface IUsbSell {
- /**
- * @param number ʾһι
- * @param float ֵʾU̵ļ۸
- * */
- public float sell(int number);
- //Զķ
-}
diff --git a/src/com/spring/aop/jdkStaticProxy/TaoBao.java b/src/com/spring/aop/jdkStaticProxy/TaoBao.java
deleted file mode 100644
index 3982fc0..0000000
--- a/src/com/spring/aop/jdkStaticProxy/TaoBao.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.spring.aop.jdkStaticProxy;
-
-
-//TaoBaoһ̼ңʿU̵
-public class TaoBao implements IUsbSell {
- //̼ҴijҾ˭Ŀ
- private UsbKingFactory factory = new UsbKingFactory();
- @Override
- public float sell(int number) {
- float price = factory.sell(number);//Ҽ۸
- price = price + 25.0f;//ۼ,⣺˴ΪǿĿ귽úǿ˹ܡ
- return price;//ۼ
- }
-}
diff --git a/src/com/spring/aop/jdkStaticProxy/UsbKingFactory.java b/src/com/spring/aop/jdkStaticProxy/UsbKingFactory.java
deleted file mode 100644
index 0d7c434..0000000
--- a/src/com/spring/aop/jdkStaticProxy/UsbKingFactory.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package com.spring.aop.jdkStaticProxy;
-//Ŀࣺʿٳ,û
-public class UsbKingFactory implements IUsbSell {
-
- @Override
- public float sell(int number) {
- //һ128GU85Ԫ
- return 85.0f;
- }
-
-}
diff --git a/src/com/spring/aop/jdkStaticProxy/WeiShang.java b/src/com/spring/aop/jdkStaticProxy/WeiShang.java
deleted file mode 100644
index 327fd3e..0000000
--- a/src/com/spring/aop/jdkStaticProxy/WeiShang.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.spring.aop.jdkStaticProxy;
-//WeiShangһ̼ңʿU̵
-public class WeiShang implements IUsbSell {
- //Ŀ
- private UsbKingFactory king = new UsbKingFactory();
- @Override
- public float sell(int number) {
- float price = king.sell(number);//Ŀ
- price = price + 1; //йǿ
- return price;
- }
-
-}
diff --git a/src/com/spring/aop/jdkStaticProxy/readme.txt b/src/com/spring/aop/jdkStaticProxy/readme.txt
deleted file mode 100644
index dac4cbf..0000000
--- a/src/com/spring/aop/jdkStaticProxy/readme.txt
+++ /dev/null
@@ -1,24 +0,0 @@
-̬
- 1ԼֹʵֵģԼһjava࣬ʾࡣ
- 2ҪĿȷġ
-ŵ㣺ʵּ⡣
-ȱ㣺1Ŀ࣬ҲҪɱࡣࡣ
- 2ӿӷʱᵼеĿʹҪи÷ʵ֡Ӱ칦չ
-ģûU̵Ϊ
- ɫ
- ͻࣺû
- |
- ̼ңijƷƵU
- |
- ңĿ
-
- ͻ Ŀ
- -----------
- ߵĹϵû----()---->|̼ң̼|----()---->
- -----------
- ע˴̼ҺͳһµĹܾǶU
-ʵֲ裺
- 1һӿڣU̵ķʾҺ̼Ҫ顣
- 2࣬Ҫʵֲ1Ľӿڡ
- 3̼(),ҲҪʵֲ1Ľӿڡ
- 4ͻ̼࣬ҵķһU̡
\ No newline at end of file
diff --git a/src/com/spring/bean/scope/Scope.java b/src/com/spring/bean/scope/Scope.java
deleted file mode 100644
index 2560c56..0000000
--- a/src/com/spring/bean/scope/Scope.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package com.spring.bean.scope;
-
-public class Scope {
- //ʾspringbeanĵ
-}
diff --git a/src/com/spring/bean/scope/Test.java b/src/com/spring/bean/scope/Test.java
deleted file mode 100644
index 3e77cca..0000000
--- a/src/com/spring/bean/scope/Test.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package com.spring.bean.scope;
-
-import org.springframework.context.ApplicationContext;
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-public class Test {
- public static void main(String[] ages){
- String path = "applicationContext.xml";
- ApplicationContext applicationContext = new ClassPathXmlApplicationContext(path);
- //singleton
- Scope singleton1 = (Scope)applicationContext.getBean("singletonBean");
- Scope singleton2 = (Scope)applicationContext.getBean("singletonBean");
- System.out.println("scope=\"singleton\""+singleton1);
- System.out.println("scope=\"singleton\""+singleton2);
- //prototype
- Scope prototype1 = (Scope)applicationContext.getBean("prototypeBean");
- Scope prototype2 = (Scope)applicationContext.getBean("prototypeBean");
- System.out.println("scope=\"prototype\""+prototype1);
- System.out.println("scope=\"prototype\""+prototype2);
- }
-}
diff --git a/src/com/spring/instance/constuctor/NoParameterConstructor.java b/src/com/spring/instance/constuctor/NoParameterConstructor.java
deleted file mode 100644
index 82b37c2..0000000
--- a/src/com/spring/instance/constuctor/NoParameterConstructor.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package com.spring.instance.constuctor;
-
-public class NoParameterConstructor {
-// public NoParameterConstructor() {
-// System.out.println("ʵ");
-// }
-}
diff --git a/src/com/spring/instance/constuctor/Test.java b/src/com/spring/instance/constuctor/Test.java
deleted file mode 100644
index 595ad0b..0000000
--- a/src/com/spring/instance/constuctor/Test.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package com.spring.instance.constuctor;
-
-import org.springframework.context.ApplicationContext;
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-public class Test {
- public static void main(String[] args){
- /**
- * springĹʵbean
- * */
- ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
- NoParameterConstructor bean = (NoParameterConstructor) applicationContext.getBean("noParameterConstructor");
- System.out.println(bean);
- }
-}
diff --git a/src/com/spring/instance/instanceFactory/Bean.java b/src/com/spring/instance/instanceFactory/Bean.java
deleted file mode 100644
index a8eb87e..0000000
--- a/src/com/spring/instance/instanceFactory/Bean.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package com.spring.instance.instanceFactory;
-
-public class Bean {
-
-}
diff --git a/src/com/spring/instance/instanceFactory/CreateBeanFactory.java b/src/com/spring/instance/instanceFactory/CreateBeanFactory.java
deleted file mode 100644
index 5b319e2..0000000
--- a/src/com/spring/instance/instanceFactory/CreateBeanFactory.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.spring.instance.instanceFactory;
-
-public class CreateBeanFactory {
-// public CreateBeanFactory(){
-// System.out.println("ʵʵ");
-// }
- public Bean createBean(){//BeanʵĹ
- return new Bean();
- }
-}
diff --git a/src/com/spring/instance/instanceFactory/Test.java b/src/com/spring/instance/instanceFactory/Test.java
deleted file mode 100644
index 6f42e6c..0000000
--- a/src/com/spring/instance/instanceFactory/Test.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.spring.instance.instanceFactory;
-
-import org.springframework.context.ApplicationContext;
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-public class Test {
-
- public static void main(String[] args) {
- ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
- Bean bean = (Bean)applicationContext.getBean("instanceBean");
- System.out.println(bean);
- }
-}
diff --git a/src/com/spring/instance/static_factory/Bean.java b/src/com/spring/instance/static_factory/Bean.java
deleted file mode 100644
index 4e60214..0000000
--- a/src/com/spring/instance/static_factory/Bean.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package com.spring.instance.static_factory;
-
-public class Bean {
-
-}
diff --git a/src/com/spring/instance/static_factory/CreateBeanFactory.java b/src/com/spring/instance/static_factory/CreateBeanFactory.java
deleted file mode 100644
index 450c891..0000000
--- a/src/com/spring/instance/static_factory/CreateBeanFactory.java
+++ /dev/null
@@ -1,8 +0,0 @@
-package com.spring.instance.static_factory;
-
-public class CreateBeanFactory {
- public static Bean createBean(){
- //˷ƾ̬࣬ҪʵBean
- return new Bean();
- }
-}
diff --git a/src/com/spring/instance/static_factory/Test.java b/src/com/spring/instance/static_factory/Test.java
deleted file mode 100644
index bfb5bb2..0000000
--- a/src/com/spring/instance/static_factory/Test.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.spring.instance.static_factory;
-
-import org.springframework.context.ApplicationContext;
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-
-
-public class Test {
- public static void main(String[] args){
- ApplicationContext applictionContext = new ClassPathXmlApplicationContext("applicationContext.xml");
- Bean bean = (Bean)applictionContext.getBean("staticFactory");
- System.out.println(bean);
- }
-}
diff --git a/src/com/spring/ioc/Test.java b/src/com/spring/ioc/Test.java
deleted file mode 100644
index d06cdcf..0000000
--- a/src/com/spring/ioc/Test.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package com.spring.ioc;
-
-import org.springframework.context.ApplicationContext;
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-
-public class Test {
- //这是新添加的主方法
- public static void main(String[] args) {
- ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
- UserService userService = (UserService)applicationContext.getBean("userService");
- userService.say();
- }
-
-}
diff --git a/src/com/spring/ioc/UserDao.java b/src/com/spring/ioc/UserDao.java
deleted file mode 100644
index ba8e2c2..0000000
--- a/src/com/spring/ioc/UserDao.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package com.spring.ioc;
-
-public interface UserDao {
- public void say();
-}
diff --git a/src/com/spring/ioc/UserDaoImpl.java b/src/com/spring/ioc/UserDaoImpl.java
deleted file mode 100644
index 5b5197c..0000000
--- a/src/com/spring/ioc/UserDaoImpl.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.spring.ioc;
-
-public class UserDaoImpl implements UserDao {
-
- @Override
- public void say() {
- System.out.println("Hello Spring IOC!");
- }
-
-}
diff --git a/src/com/spring/ioc/UserService.java b/src/com/spring/ioc/UserService.java
deleted file mode 100644
index 06acc40..0000000
--- a/src/com/spring/ioc/UserService.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package com.spring.ioc;
-
-public interface UserService {
- public void say();
-}
diff --git a/src/com/spring/ioc/UserServiceImpl.java b/src/com/spring/ioc/UserServiceImpl.java
deleted file mode 100644
index ab049cc..0000000
--- a/src/com/spring/ioc/UserServiceImpl.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package com.spring.ioc;
-
-
-public class UserServiceImpl implements UserService{
-
- private UserDao userDao;//ͨspringעuserDao
- private String username;
- public void setUserDao(UserDao userDao){
- this.userDao = userDao;
- }
- public void say() {
- userDao.say();
- System.out.println("UserService say Hello Spring!"+"\nwho say?"+username);
- }
- public UserServiceImpl(String username){
- this.username = username;
- }
-}