32d123580ceccf521fa863be2593db48dcef031d
[logging-analytics.git] / reference / logging-demo / src / main / webapp / WEB-INF / spring.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
4    xmlns:util="http://www.springframework.org/schema/util"
5    xmlns:context="http://www.springframework.org/schema/context"
6    xmlns:tx="http://www.springframework.org/schema/tx" 
7    xmlns:p="http://www.springframework.org/schema/p"
8    xmlns:jpa="http://www.springframework.org/schema/data/jpa"
9    xmlns:aop="http://www.springframework.org/schema/aop"
10    xmlns:mvc="http://www.springframework.org/schema/mvc"
11    xsi:schemaLocation="http://www.springframework.org/schema/beans 
12     http://www.springframework.org/schema/beans/spring-beans.xsd 
13     http://www.springframework.org/schema/util 
14     http://www.springframework.org/schema/util/spring-util.xsd
15      http://www.springframework.org/schema/context 
16       http://www.springframework.org/schema/context/spring-context.xsd 
17        http://www.springframework.org/schema/tx 
18         http://www.springframework.org/schema/tx/spring-tx.xsd 
19            http://www.springframework.org/schema/data/jpa
20         http://www.springframework.org/schema/data/jpa/spring-jpa.xsd
21          http://www.springframework.org/schema/mvc 
22          http://www.springframework.org/schema/mvc/spring-mvc.xsd
23          http://www.springframework.org/schema/aop 
24           http://www.springframework.org/schema/aop/spring-aop.xsd"
25    default-lazy-init="true">
26
27     <context:annotation-config />
28     <context:spring-configured />
29     <!-- rest annotations -->
30     <mvc:annotation-driven />
31     <!--  read in DAO's via Repository annotation -->
32     <context:component-scan base-package="org.onap.demo.logging.*" use-default-filters="false" >
33         <context:include-filter type="annotation" expression="org.springframework.stereotype.Repository" />
34     </context:component-scan>
35     <!--  Rest controllers -->
36     <context:component-scan base-package="org.onap.demo.logging" />
37 </beans>
38
39
40