views:

33

answers:

1

I've been trying to figure out how to get a basic HTTP Basic auth pop-up on a particular controller and its methods but can't seem to figure it out. The examples and documentation seem to all use XML configuration and I'm configuring my app entirely with annotations. I just need a simple, hard coded username/password login. Any suggestions?

+1  A: 

Configuring librabies (such as Spring Security) using namespace extentions is the only case when you have to use XML configs in Spring 3. So, you can't do it with annotations (actually you can, but it would be overcomplicated).

To include XML configuration into annotation-based configuration you can use @ImportResource annotation.

axtavt
Thanks, that helped a ton
Matt W