Guest User

Untitled

a guest
Nov 27th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <sec:http auto-config="true">
  2. <sec:intercept-url pattern="/**" access="ROLE_USER"/>
  3. <sec:http-basic/>
  4. </sec:http>
  5.  
  6. <sec:authentication-manager>
  7. <sec:authentication-provider user-service-ref="myUserDeatilsService"</sec:authentication-provider>
  8. </sec:authentication-manager>
  9. <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
  10. <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
  11. <property name="url" value="jdbc:mysql://localhost:3306/demodb?useSSL=false" />
  12. <property name="username" value="root"/>
  13. <property name="password" value="root"/>
  14. </bean>
  15. <bean id="myUserDeatilsService" class="org.springframework.security.core.userdetails.jdbc.JdbcDaoImpl">
  16. <property name="dataSource" ref="dataSource"></property>
  17. </bean>
Add Comment
Please, Sign In to add comment