开发者

Configuring default user in 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


Do you mean an anonymous user?

If so, try this: http://static.springsource.org/spring-security/site/docs/3.0.x/reference/anonymous.html

("Spring Security's anonymous authentication just gives you a more convenient way to configure your access-control attributes")

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜