在spring security中配置默认用户
有没有办法配置 spring security 来拥有默认用户(具有角色等)?我想在嵌入式码头环境中使用它进行测试。
我提供了一个 InMemoryUserDetailsService 但我缺少告诉 spring security 使用哪个用户的部分。
谢谢你的帮助
,法比安
is there a way to configure spring security to have a default user (with roles and such)? i want to use it for testing purposes in an embedded jetty environment.
i provided an InMemoryUserDetailsService but i am missing the part where i tell spring security to use which user.
thanks for your help
fabian
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(1)
您是指匿名用户吗?
如果是这样,请尝试以下操作: http://static .springsource.org/spring-security/site/docs/3.0.x/reference/anonymous.html
Do you mean an anonymous user?
If so, try this: http://static.springsource.org/spring-security/site/docs/3.0.x/reference/anonymous.html