30/09/2018, 21:21
Lỗi SQL trong Spring security
mình có làm theo 1 tut về form login và phân quyền sử dụng Spring security.mình có config file spring-security.xml như sau :
<!-- authentication from database -->
<authentication-provider>
<jdbc-user-service data-source-ref="myDataSource"
users-by-username-query="select username,password, enabled from users where username=?"
authorities-by-username-query="Select username, concat('ROLE_',user_role) user_role from user_roles where username=?" />
</authentication-provider>
</authentication-manager>
lúc run nó báo lỗi SQL bad comand ở lệnh " select username,password,enabled from users where username = ?",chạy trong sql server ko lỗi gì cả
Ai thông não giùm mình cái
Bài liên quan