Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1. @Configuration
  2. @EnableWebSecurity
  3. @Profile(value = {"!test"})
  4. public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
  5. }
  6.  
  7. spring:
  8.   profiles: test
  9.   flyway:
  10.     enabled: true
  11.     validate-on-migrate: true
  12.     clean-disabled: false
  13. #  autoconfigure:
  14. #    exclude: org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration
  15.   security:
  16.     basic:
  17.       enabled: false
  18.  
  19. @WebMvcTest(CategoryController.class)
  20. @ActiveProfiles("test")
  21. public class CategoryControllerTest {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement