Config.groovy
log4j = { // Example of changing the log pattern for the default console appender: // appenders { rollingFile name: "file", maxFileSize: 1024, file: "web-app/log/info.log" console name: 'stdout', layout: pattern(conversionPattern: "%d [%p] %l%n%m%n%n") appender new DailyRollingFileAppender( name: "dailyFile", file: "web-app/log/info.log", datePattern: "'.'yyyy-MM-dd", layout: pattern( conversionPattern: "%d [%p] %l%n%m%n%n" ) ) } environments { development { root { info 'stdout' info 'dailyFile' additivity = true } } production { root { info 'stdout', 'dailyFile' additivity = true } } test { root { debug 'dailyFile' additivity = true } } } error 'org.codehaus.groovy.grails.web.servlet', // controllers 'org.codehaus.groovy.grails.web.pages', // GSP 'org.codehaus.groovy.grails.web.sitemesh', // layouts 'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping 'org.codehaus.groovy.grails.web.mapping', // URL mapping 'org.codehaus.groovy.grails.commons', // core / classloading 'org.codehaus.groovy.grails.plugins', // plugins 'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration 'org.springframework', 'org.hibernate', 'net.sf.ehcache.hibernate' debug 'org.hibernate', 'org.hibernate.transaction', 'org.codehaus.groovy.grails.orm.hibernate', 'org.hibernate.jdbc' }
但是发现Sql接口查询的还是显示不出来