Announcement Announcement Module
Collapse
No announcement yet.
Spring Security Java Configuration with Multiple HttpSecurity elements Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Security Java Configuration with Multiple HttpSecurity elements

    Hi there,

    I'm trying to migrate my xml configuration into the new 3.2.0M2 Java configuration. It all works good, but the problem is that I have multiple HttpSecurity elements in my xml. In the Java configuration I have to override the configure method:

    Code:
    	@Override
    	protected void configure(final HttpSecurity http) throws Exception {
    so I don't think it's possible to have multiple HttpSecurity elements. Also on the HttpSecurity elements I don't know how to specify the pattern attribute which is on the xml element.

    Thanks for your reply.

  • #2
    Thanks to Rob Winch who pointed out here:

    https://github.com/SpringSource/spri...-configuration

    You just need to create several Configurations inside your configuration.

    Comment

    Working...
    X