Reputation: 3936
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
Reputation: 15105
As the error says:
@SpringBootApplication(exclude = Array(classOf[SecurityAutoConfiguration]))
Upvotes: 1