|
@@ -1,43 +1,23 @@
|
1
|
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
|
-<!--
|
3
|
|
- Licensed to the Apache Software Foundation (ASF) under one or more
|
4
|
|
- contributor license agreements. See the NOTICE file distributed with
|
5
|
|
- this work for additional information regarding copyright ownership.
|
6
|
|
- The ASF licenses this file to You under the Apache License, Version 2.0
|
7
|
|
- (the "License"); you may not use this file except in compliance with
|
8
|
|
- the License. You may obtain a copy of the License at
|
9
|
2
|
|
10
|
|
- http://www.apache.org/licenses/LICENSE-2.0
|
11
|
|
-
|
12
|
|
- Unless required by applicable law or agreed to in writing, software
|
13
|
|
- distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
|
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
|
- See the License for the specific language governing permissions and
|
16
|
|
- limitations under the License.
|
17
|
|
--->
|
18
|
|
-<!-- @version $Id: applicationContext.xml 561608 2007-08-01 00:33:12Z vgritsenko $ -->
|
19
|
3
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
20
|
4
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
21
|
|
- xmlns:util="http://www.springframework.org/schema/util"
|
22
|
|
- xmlns:configurator="http://cocoon.apache.org/schema/configurator"
|
23
|
|
- xmlns:avalon="http://cocoon.apache.org/schema/avalon"
|
24
|
|
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
|
25
|
|
- http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd
|
26
|
|
- http://cocoon.apache.org/schema/configurator http://cocoon.apache.org/schema/configurator/cocoon-configurator-1.0.1.xsd
|
27
|
|
- http://cocoon.apache.org/schema/avalon http://cocoon.apache.org/schema/avalon/cocoon-avalon-1.0.xsd">
|
28
|
|
-
|
29
|
|
- <!-- Activate Cocoon Spring Configurator -->
|
30
|
|
- <configurator:settings/>
|
31
|
|
-
|
32
|
|
- <!-- Configure Log4j -->
|
33
|
|
- <bean name="org.apache.cocoon.spring.configurator.log4j"
|
34
|
|
- class="org.apache.cocoon.spring.configurator.log4j.Log4JConfigurator"
|
35
|
|
- scope="singleton">
|
36
|
|
- <property name="settings" ref="org.apache.cocoon.configuration.Settings"/>
|
37
|
|
- <property name="resource" value="/WEB-INF/log4j.xml"/>
|
38
|
|
- </bean>
|
39
|
|
-
|
40
|
|
- <!-- Activate Avalon Bridge -->
|
41
|
|
- <avalon:bridge/>
|
42
|
|
-
|
43
|
|
-</beans>
|
|
5
|
+ xmlns:context="http://www.springframework.org/schema/context"
|
|
6
|
+ xsi:schemaLocation="http://www.springframework.org/schema/beans
|
|
7
|
+ http://www.springframework.org/schema/beans/spring-beans.xsd
|
|
8
|
+ http://www.springframework.org/schema/context
|
|
9
|
+ https://www.springframework.org/schema/context/spring-context.xsd">
|
|
10
|
+ <!-- <bean id="userService1" class="com.service.impl.UserServiceImpl">-->
|
|
11
|
+ <!--<!– <constructor-arg name="userDao" ref="UserDao"></constructor-arg>–>-->
|
|
12
|
+ <!-- </bean>-->
|
|
13
|
+ <!-- 加载外部 properties文件-->
|
|
14
|
+ <!-- <context:property-placeholder location="jdbc.properties"></context:property-placeholder>-->
|
|
15
|
+ <!-- <bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource">-->
|
|
16
|
+ <!-- <property name="driverClassName" value="${jdbc.driver}"></property>-->
|
|
17
|
+ <!-- <property name="url" value="${jdbc.url}"></property>-->
|
|
18
|
+ <!-- <property name="username" value="${jdbc.username}"></property>-->
|
|
19
|
+ <!-- <property name="password" value="${jdbc.password}"></property>-->
|
|
20
|
+ <!-- </bean>-->
|
|
21
|
+ <!-- 组件扫描-->
|
|
22
|
+ <context:component-scan base-package="com"></context:component-scan>
|
|
23
|
+</beans>
|