xml version="1.0" encoding="UTF-8"?>
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd">
<context:component-scan base-package="com">context:component-scan>
<aop:aspectj-autoproxy>aop:aspectj-autoproxy>
id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource">
name="driverClass" value="com.mysql.jdbc.Driver">
name="jdbcUrl" value="jdbc:mysql://localhost:3306/customer_service_system">
name="user" value="root">
name="password" value="dadan123">
id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
name="dataSource" ref="dataSource">
id="transactionManager" class="org.springframework.orm.hibernate5.HibernateTransactionManager">
name="sessionFactory" ref="sessionFactory">
<tx:annotation-driven transaction-manager="transactionManager">tx:annotation-driven>
id="sessionFactory" class="org.springframework.orm.hibernate5.LocalSessionFactoryBean">
name="dataSource" ref="dataSource">
name="configLocations" value="classpath:hibernate.cfg.xml">
id="hibernateTemplate" class="org.springframework.orm.hibernate5.HibernateTemplate">
name="sessionFactory" ref="sessionFactory">
<mvc:annotation-driven>mvc:annotation-driven>