-2

such a question. When adding the annotation @SpringBootApplication(exclude={SecurityAutoConfiguration.class}) Gives an error when building Name expected The IDE writes like this: enter image description here

What could be the problem?

  • https://stackoverflow.com/questions/23894010/spring-boot-security-disable-security – Sumedh Deshpande Sep 29 '22 at 05:03
  • 2
    Please add code as code and not as a link to an image. If the image is import at least include it properly into your question so that readers don't have to click additional links to get a full overview. – M. Deinum Sep 29 '22 at 08:18

1 Answers1

0

Assuming by tags that you are using kotlin and it has slightly different syntax actually.

Change

@SpringBootApplication(exclude={SecurityAutoConfiguration.class})

To

@SpringBootApplication(exclude=[SecurityAutoConfiguration::class])
Alien
  • 15,141
  • 6
  • 37
  • 57