From 9520ccf38c1069e2667bc68c67a2948aa802ebbb Mon Sep 17 00:00:00 2001 From: qi Date: Thu, 6 Aug 2020 09:18:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Exml=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../beans/factory/impl/XmlBeanFactory.java | 3 +++ .../src/main/resources/application.xml | 7 ++++++ .../src/main/resources/application.xsd | 25 +++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 panda-beans/src/main/resources/application.xml create mode 100644 panda-beans/src/main/resources/application.xsd diff --git a/panda-beans/src/main/java/org/panda/beans/factory/impl/XmlBeanFactory.java b/panda-beans/src/main/java/org/panda/beans/factory/impl/XmlBeanFactory.java index e09a416..d2223cd 100644 --- a/panda-beans/src/main/java/org/panda/beans/factory/impl/XmlBeanFactory.java +++ b/panda-beans/src/main/java/org/panda/beans/factory/impl/XmlBeanFactory.java @@ -13,8 +13,11 @@ public class XmlBeanFactory implements BeanFactory { Map beanMap = new HashMap<>(); + public XmlBeanFactory(String resources){ + } + @Override public Object getBean(String name) { return beanMap.get(name); diff --git a/panda-beans/src/main/resources/application.xml b/panda-beans/src/main/resources/application.xml new file mode 100644 index 0000000..f9983ce --- /dev/null +++ b/panda-beans/src/main/resources/application.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/panda-beans/src/main/resources/application.xsd b/panda-beans/src/main/resources/application.xsd new file mode 100644 index 0000000..a772a56 --- /dev/null +++ b/panda-beans/src/main/resources/application.xsd @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file