Qing 1 年之前
父節點
當前提交
27b1aae97c

+ 1 - 1
spring-demo/.idea/misc.xml

@@ -9,7 +9,7 @@
     </option>
     <option name="workspaceImportForciblyTurnedOn" value="true" />
   </component>
-  <component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="corretto-17" project-jdk-type="JavaSDK">
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK">
     <output url="file://$PROJECT_DIR$/out" />
   </component>
 </project>

+ 1 - 1
spring-demo/src/main/resources/ioc/bean-annotation.xml

@@ -9,6 +9,6 @@
 
     <!-- 扫描要创建的对象 (组件component scann是扫描) 要配置一个包的路径 base-package
        去扫描注解 组件@Component-->
-    <context:component-scan base-package="com.sf.annotation">
+    <context:component-scan base-package="com.sf.ioc.annotation">
     </context:component-scan>
 </beans>

+ 1 - 1
spring-demo/src/test/java/com/sf/ioc/TestPrototype.java

@@ -34,7 +34,7 @@ public class TestPrototype {
     @Test
     public void testFile(){
         ApplicationContext context =
-                new FileSystemXmlApplicationContext("src/main/resources/bean.xml");
+                new FileSystemXmlApplicationContext("src/main/resources/ioc/bean.xml");
         User user = context.getBean("user", User.class);
         System.out.println(user);