avatar
Untitled

Guest 29 9th Oct, 2019

MARKUP 1.23 KB
                                           
                         <!-- to activate annotations in beans already registered in the application context -->
	<context:annotation-config />

	<!-- register beans for handling incoming HTTP requests -->
	<context:component-scan base-package="com.spring.series.security.controller" />

	<!-- view resolver for rendering the final output -->
	<bean
		class="org.springframework.web.servlet.view.InternalResourceViewResolver">
		<property name="prefix">
			<value>/WEB-INF/jsp/</value>
		</property>
		<property name="suffix">
			<value>.jsp</value>
		</property>
	</bean>

	<!-- MySql dataSource configuration -->
	<bean id="dataSource"
		class="org.springframework.jdbc.datasource.DriverManagerDataSource">
		<property name="driverClassName" value="com.mysql.jdbc.Driver" />
		<property name="url" value="jdbc:mysql://localhost:3306/mysql" />
		<property name="username" value="root" />
		<property name="password" value="root" />
	</bean>

</beans>
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes