我有spring-security.xml文件。在那我写sql查询从数据库中选择记录。现在我需要将这些记录传递给servlet。有可能吗?怎么样 ?或者任何替代方法吗?
这是我的spring-security.xml
<authentication-manager>
<authentication-provider>
<jdbc-user-service data-source-ref="dataSource"
users-by-username-query=
"select user_login_name,user_password,user_id,role_type_id from sox_audit.sox_users where user_login_name=?"
authorities-by-username-query=
"select username, role from user_roles where username =? "/>
<!-- <user-service>
<user name="Sriram" password="12345" authorities="ROLE_USER" />
<user name="Vignesh" password="12345" authorities="ROLE_ADMIN" />
<user name="Yogesh" password="12345" authorities="PARTNER_CUSTOMER" />
</user-service> -->
</authentication-provider>
</authentication-manager>