I used spring-boot-actuator with different port like following
server.port=8080
management.port=8989
And in application, I want to use enable-csrf=true
, but I don't want to use csrf
in actuator port. because I want to use bulk POST request to jolokia.
Only excluding /actuator
is not smart.
http.csrf().ignoringAntMatchers("/actuator/**");
Like following property is good for me (bt management.security.enable-csrf
is not exist).
security.enable-csrf=true
management.security.enable-csrf=false
Is there any good solution?