matrei commented on issue #16029:
URL: https://github.com/apache/grails-core/issues/16029#issuecomment-5490466925
I'm not sure this is a bug, `resources.groovy` is for defining beans.
I think it was only incidental that it worked previously.
I think the correct way to add a `@Configuration` class is to use
`@ComponentScan` or `@Import`:
```groovy
@ComponentScan
class Application extends GrailsAutoConfiguration {
static void main(String[] args) {
GrailsApp.run(Application, args)
}
}
```
```groovy
@Import(MyConfiguration)
class Application extends GrailsAutoConfiguration {
static void main(String[] args) {
GrailsApp.run(Application, args)
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]