JGleason
JGleason

Reputation: 3936

What is the equivalent of "@SpringBootApplication(exclude={SecurityAutoConfiguration.class})" in scala?

I am trying to exclude the login class for Scala. I tried...

@SpringBootApplication(exclude = new Array[Class[_]](classOf[SecurityAutoConfiguration]))

But I get...

Array constants have to be specified using the Array(...) factory method

What am I missing how do I exclude the security class in Scala?

Upvotes: 0

Views: 184

Answers (1)

Gaël J
Gaël J

Reputation: 15105

As the error says:

@SpringBootApplication(exclude = Array(classOf[SecurityAutoConfiguration]))

Upvotes: 1

Related Questions