log4j 报错解决
log4j:WARN No appenders could be found for logger (dao.hsqlmanager).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
sourceSets {
main {
java {
srcDir 'src/main/java'
}
resources {
srcDir 'src/main/resources'
srcDir 'src/main/java'
srcDir 'src/main/webapp/WEB-INF/conf' // 添加这行
}
}
test {
java {
srcDir 'src/test/java'
}
}
}