Guest User

Untitled

a guest
Nov 7th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.10 KB | None | 0 0
  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:aop="http://www.springframework.org/schema/aop"
  5. xmlns:context="http://www.springframework.org/schema/context"
  6. xmlns:jee="http://www.springframework.org/schema/jee"
  7. xmlns:lang="http://www.springframework.org/schema/lang"
  8. xmlns:p="http://www.springframework.org/schema/p"
  9. xmlns:tx="http://www.springframework.org/schema/tx"
  10. xmlns:util="http://www.springframework.org/schema/util"
  11. xmlns:mvc="http://www.springframework.org/schema/mvc"
  12. xmlns:webflow="http://www.springframework.org/schema/webflow-config"
  13. xsi:schemaLocation="http://www.springframework.org/schema/beans
  14. http://www.springframework.org/schema/beans/spring-beans.xsd
  15. http://www.springframework.org/schema/aop
  16. http://www.springframework.org/schema/aop/spring-aop.xsd
  17. http://www.springframework.org/schema/context
  18. http://www.springframework.org/schema/context/spring-context.xsd
  19. http://www.springframework.org/schema/jee
  20. http://www.springframework.org/schema/jee/spring-jee.xsd
  21. http://www.springframework.org/schema/lang
  22. http://www.springframework.org/schema/lang/spring-lang.xsd
  23. http://www.springframework.org/schema/tx
  24. http://www.springframework.org/schema/tx/spring-tx.xsd
  25. http://www.springframework.org/schema/util
  26. http://www.springframework.org/schema/util/spring-util.xsd
  27. http://www.springframework.org/schema/mvc
  28. http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
  29. http://www.springframework.org/schema/webflow-config
  30. http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.0.xsd">
  31.  
  32. <context:annotation-config />
  33. <context:component-scan
  34. base-package="br.com.devmedia.gestaoacademicaweb" />
  35.  
  36.  
  37. <bean id="jspViewResolver"
  38. class="org.springframework.web.servlet.view.InternalResourceViewResolver">
  39. <property name="viewClass"
  40. value="org.springframework.web.servlet.view.JstlView" />
  41. <property name="prefix" value="/WEB-INF/views/" />
  42. <property name="suffix" value=".jsp" />
  43. </bean>
  44.  
  45. <bean id="propertyConfigurer"
  46. class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
  47. p:location="/WEB-INF/jdbc.properties" />
  48.  
  49. <bean id="dataSource"
  50. class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"
  51. p:driverClassName="${jdbc.driverClassName}"
  52. p:url="${jdbc.databaseurl}" p:username="${jdbc.username}"
  53. p:password="${jdbc.password}" />
  54.  
  55. <bean id="sessionFactory"
  56. class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
  57. <property name="dataSource" ref="dataSource" />
  58. <property name="configLocation">
  59. <value>classpath:hibernate.cfg.xml</value>
  60. </property>
  61.  
  62. <property name="hibernateProperties">
  63. <props>
  64. <prop key="hibernate.dialect">${jdbc.dialect}</prop>
  65. <prop key="hibernate.show_sql">true</prop>
  66. </props>
  67. </property>
  68. </bean>
  69.  
  70. <tx:annotation-driven />
  71. <bean id="transactionManager"
  72. class="org.springframework.orm.hibernate4.HibernateTransactionManager">
  73. <property name="sessionFactory" ref="sessionFactory" />
  74. </bean>
  75.  
  76. <webflow:flow-executor id="flowExecutor" />
  77.  
  78. <webflow:flow-registry id="flowRegistry">
  79. <webflow:flow-location
  80. path="/WEB-INF/flows/inserirDocente.xml" id="inserirDocente" />
  81. </webflow:flow-registry>
  82.  
  83. <bean
  84. class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping">
  85. <property name="flowRegistry" ref="flowRegistry" />
  86. <property name="order" value="0" />
  87. </bean>
  88.  
  89. <bean
  90. class="org.springframework.webflow.mvc.servlet.FlowHandlerAdapter">
  91. <property name="flowExecutor" ref="flowExecutor" />
  92. </bean>
  93.  
  94. <bean name="docenteController"
  95. class="br.com.devmedia.gestaoacademicaweb.control.DocenteController" />
  96.  
  97. </beans>
Add Comment
Please, Sign In to add comment