jfinal slf4j log api,查看其他插件-> Maven
maven 引用 ${jfinal-slf4j.version}替换为相应的版本如:0.1
<dependency>
<groupId>cn.dreampie</groupId>
<artifactId>jfinal-slf4j</artifactId>
<version>${jfinal-slf4j.version}</version>
</dependency>
public void configConstant(Constants constants) {
//set log to slf4j
Logger.setLoggerFactory(new Slf4jLogFactory());
}