Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Configuration
- @EnableWebSecurity
- @Profile(value = {"!test"})
- public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
- }
- spring:
- profiles: test
- flyway:
- enabled: true
- validate-on-migrate: true
- clean-disabled: false
- # autoconfigure:
- # exclude: org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration
- security:
- basic:
- enabled: false
- @WebMvcTest(CategoryController.class)
- @ActiveProfiles("test")
- public class CategoryControllerTest {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement