Skip to content

Document what happens when DSL is invoked twice #12627

Open
@rwinch

Description

@rwinch

We should document in Javadoc and the reference what happens if the DSL is invoked twice. For example, what happens if the following is done:

http.authorizeHttpRequests(request -> request.anyRequest().permitAll());

http.authorizeHttpRequests(request -> request.anyRequest().denyAll())

Does this override values or does it add to them? There are other configurations where values are set vs added that would be interesting to explicitly document. For example

http.csrf().csrfTokenRepository(first); // ...
http.csrf().csrfTokenRepository(second); // ...

We should also document lambdas

Metadata

Metadata

Assignees

Labels

in: docsAn issue in Documentation or samplestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions