Skip to content

Commit

Permalink
sample app reproducing grails/grails-data-mapping#1368
Browse files Browse the repository at this point in the history
  • Loading branch information
zyro23 committed Aug 17, 2020
1 parent 3a6ea5e commit 7932edd
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion grails-app/conf/logback.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ if (Environment.isDevelopmentMode() && targetDir != null) {
}
logger("StackTrace", ERROR, ['FULL_STACKTRACE'], false)
}
root(ERROR, ['STDOUT'])
root(INFO, ['STDOUT'])
7 changes: 7 additions & 0 deletions grails-app/domain/myapp/Dummy.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package myapp

class Dummy {

String name

}
2 changes: 2 additions & 0 deletions grails-app/init/myapp/Application.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ import grails.boot.GrailsApp
import grails.boot.config.GrailsAutoConfiguration

import groovy.transform.CompileStatic
import org.springframework.context.annotation.ComponentScan

@CompileStatic
@ComponentScan
class Application extends GrailsAutoConfiguration {
static void main(String[] args) {
GrailsApp.run(Application, args)
Expand Down
10 changes: 10 additions & 0 deletions grails-app/services/myapp/DummyDataService.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package myapp

import grails.gorm.services.Service

@Service(Dummy)
interface DummyDataService {

List<Dummy> list()

}
13 changes: 13 additions & 0 deletions src/main/groovy/myapp/MyBeanPostProcessor.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package myapp

import org.springframework.beans.factory.annotation.Autowired
import org.springframework.beans.factory.config.BeanPostProcessor
import org.springframework.stereotype.Component

@Component
class MyBeanPostProcessor implements BeanPostProcessor {

@Autowired
DummyDataService dummyDataService

}

0 comments on commit 7932edd

Please sign in to comment.