去掉mns的pom依赖后就可以打印,检查后发现mns 依赖log4j 但是我在pom里面把它依赖的log4j 排除后也打印不了只能输入info级别的日志
<dependency>
<groupId>com.aliyun.mns</groupId>
<artifactId>aliyun-sdk-mns</artifactId>
<version>1.1.8</version>
<classifier>jar-with-dependencies</classifier>
<exclusions>
<exclusion>
<artifactId>log4j</artifactId>
<groupId>log4j</groupId>
</exclusion>
</exclusions>
</dependency>
2017-03-01 18:57:45 [ http-nio-10086-exec-1:10915 ] - [ WARN ] org.nutz.dao.impl.entity.AnnotationEntityMaker.make(AnnotationEntityMaker.java:116) No @Table found, fallback to use table name='app_version' for type 'cn.guanfu.server.api.view.AppVersion'
2017-03-01 18:57:45 [ http-nio-10086-exec-1:10924 ] - [ INFO ] org.nutz.dao.util.Daos.getColumnIndex(Daos.java:127) Can not find @Column(payWx) in table/view (app_version)
2017-03-01 18:57:45 [ http-nio-10086-exec-1:10924 ] - [ INFO ] org.nutz.dao.util.Daos.getColumnIndex(Daos.java:127) Can not find @Column(payAli) in table/view (app_version)
2017-03-01 18:57:45 [ http-nio-10086-exec-1:10925 ] - [ INFO ] org.nutz.dao.util.Daos.getColumnIndex(Daos.java:127) Can not find @Column(payApple) in table/view (app_version)
2017-03-01 18:57:45 [ http-nio-10086-exec-1:10926 ] - [ INFO ] org.nutz.dao.util.Daos.getColumnIndex(Daos.java:127) Can not find @Column(exposeVersion) in table/view (app_version)
2017-03-01 18:57:45 [ http-nio-10086-exec-1:10926 ] - [ INFO ] org.nutz.dao.util.Daos.getColumnIndex(Daos.java:127) Can not find @Column(createTime) in table/view (app_version)
并不能打印之前输出的SQL DEBUG信息