NutzCN Logo
问答 SpringBoot 项目集成了Nutz 在集成阿里的MNS服务 后dao的log没了
发布于 2816天前 作者 firenut 2952 次浏览 复制 上一个帖子 下一个帖子
标签:

去掉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信息

13 回复

建议加上log4j然后配好它的log4j.properties哦

我现在项目用的log4j2

mvn dependency:tree

贴一下输出

INFO] cn.gf:gf-restful-api:jar:1.0-SNAPSHOT
[INFO] +- com.qiniu:qiniu-java-sdk:jar:7.0.11:compile
[INFO] |  +- com.google.code.gson:gson:jar:2.7:compile
[INFO] |  \- com.squareup.okhttp:okhttp:jar:2.7.1:compile
[INFO] |     \- com.squareup.okio:okio:jar:1.6.0:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:1.4.0.RELEASE:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-tomcat:jar:1.4.0.RELEASE:compile
[INFO] |  |  +- org.apache.tomcat.embed:tomcat-embed-core:jar:8.5.4:compile
[INFO] |  |  +- org.apache.tomcat.embed:tomcat-embed-el:jar:8.5.4:compile
[INFO] |  |  \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.5.4:compile
[INFO] |  +- org.hibernate:hibernate-validator:jar:5.2.4.Final:compile
[INFO] |  |  +- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] |  |  \- org.jboss.logging:jboss-logging:jar:3.3.0.Final:compile
[INFO] |  +- com.fasterxml.jackson.core:jackson-databind:jar:2.8.1:compile
[INFO] |  |  +- com.fasterxml.jackson.core:jackson-annotations:jar:2.8.1:compile
[INFO] |  |  \- com.fasterxml.jackson.core:jackson-core:jar:2.8.1:compile
[INFO] |  +- org.springframework:spring-web:jar:4.3.2.RELEASE:compile
[INFO] |  \- org.springframework:spring-webmvc:jar:4.3.2.RELEASE:compile
[INFO] |     \- org.springframework:spring-expression:jar:4.3.2.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-aop:jar:1.4.0.RELEASE:compile
[INFO] |  +- org.springframework:spring-aop:jar:4.3.2.RELEASE:compile
[INFO] |  \- org.aspectj:aspectjweaver:jar:1.8.9:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:1.4.0.RELEASE:compile
[INFO] |  +- org.hibernate:hibernate-core:jar:5.0.9.Final:compile
[INFO] |  |  +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compile
[INFO] |  |  +- org.javassist:javassist:jar:3.20.0-GA:compile
[INFO] |  |  +- antlr:antlr:jar:2.7.7:compile
[INFO] |  |  +- org.jboss:jandex:jar:2.0.0.Final:compile
[INFO] |  |  \- org.hibernate.common:hibernate-commons-annotations:jar:5.0.1.Final:compile
[INFO] |  +- org.hibernate:hibernate-entitymanager:jar:5.0.9.Final:compile
[INFO] |  +- javax.transaction:javax.transaction-api:jar:1.2:compile
[INFO] |  +- org.springframework.data:spring-data-jpa:jar:1.10.2.RELEASE:compile
[INFO] |  |  +- org.springframework.data:spring-data-commons:jar:1.12.2.RELEASE:compile
[INFO] |  |  +- org.springframework:spring-orm:jar:4.3.2.RELEASE:compile
[INFO] |  |  \- org.springframework:spring-tx:jar:4.3.2.RELEASE:compile
[INFO] |  \- org.springframework:spring-aspects:jar:4.3.2.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-redis:jar:1.4.0.RELEASE:compile
[INFO] |  +- org.springframework.data:spring-data-redis:jar:1.7.2.RELEASE:compile
[INFO] |  |  +- org.springframework.data:spring-data-keyvalue:jar:1.1.2.RELEASE:compile
[INFO] |  |  \- org.springframework:spring-oxm:jar:4.3.2.RELEASE:compile
[INFO] |  \- redis.clients:jedis:jar:2.8.2:compile
[INFO] |     \- org.apache.commons:commons-pool2:jar:2.4.2:compile
[INFO] +- org.springframework.boot:spring-boot-configuration-processor:jar:1.4.0.RELEASE:compile
[INFO] |  +- org.json:json:jar:20140107:compile
[INFO] |  \- org.springframework:spring-core:jar:4.3.2.RELEASE:compile
[INFO] +- org.springframework.session:spring-session:jar:1.2.1.RELEASE:compile
[INFO] |  \- commons-logging:commons-logging:jar:1.2:compile
[INFO] +- org.springframework.boot:spring-boot-starter-jdbc:jar:1.4.0.RELEASE:compile
[INFO] |  +- org.apache.tomcat:tomcat-jdbc:jar:8.5.4:compile
[INFO] |  |  \- org.apache.tomcat:tomcat-juli:jar:8.5.4:compile
[INFO] |  \- org.springframework:spring-jdbc:jar:4.3.2.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:1.4.0.RELEASE:compile
[INFO] |  \- org.springframework.boot:spring-boot-actuator:jar:1.4.0.RELEASE:compile
[INFO] +- org.springframework:spring-context-support:jar:4.3.2.RELEASE:compile
[INFO] |  +- org.springframework:spring-beans:jar:4.3.2.RELEASE:compile
[INFO] |  \- org.springframework:spring-context:jar:4.3.2.RELEASE:compile
[INFO] +- mysql:mysql-connector-java:jar:5.1.39:runtime
[INFO] +- org.springframework.boot:spring-boot-starter:jar:1.4.0.RELEASE:compile
[INFO] |  +- org.springframework.boot:spring-boot:jar:1.4.0.RELEASE:compile
[INFO] |  +- org.springframework.boot:spring-boot-autoconfigure:jar:1.4.0.RELEASE:compile
[INFO] |  \- org.yaml:snakeyaml:jar:1.17:runtime
[INFO] +- org.springframework.boot:spring-boot-starter-log4j2:jar:1.4.0.RELEASE:compile
[INFO] |  +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.6.2:compile
[INFO] |  +- org.apache.logging.log4j:log4j-api:jar:2.6.2:compile
[INFO] |  +- org.apache.logging.log4j:log4j-core:jar:2.6.2:compile
[INFO] |  +- org.slf4j:jcl-over-slf4j:jar:1.7.21:compile
[INFO] |  \- org.slf4j:jul-to-slf4j:jar:1.7.21:compile
[INFO] +- com.alibaba:druid:jar:1.0.24:compile
[INFO] +- com.relops:snowflake:jar:1.1:compile
[INFO] +- commons-beanutils:commons-beanutils-core:jar:1.8.0:compile
[INFO] +- org.apache.commons:commons-lang3:jar:3.1:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:1.4.0.RELEASE:test
[INFO] |  +- org.springframework.boot:spring-boot-test:jar:1.4.0.RELEASE:test
[INFO] |  +- org.springframework.boot:spring-boot-test-autoconfigure:jar:1.4.0.RELEASE:test
[INFO] |  +- com.jayway.jsonpath:json-path:jar:2.2.0:test
[INFO] |  |  \- net.minidev:json-smart:jar:2.2.1:test
[INFO] |  |     \- net.minidev:accessors-smart:jar:1.1:test
[INFO] |  |        \- org.ow2.asm:asm:jar:5.0.3:test
[INFO] |  +- org.assertj:assertj-core:jar:2.5.0:test
[INFO] |  +- org.mockito:mockito-core:jar:1.10.19:test
[INFO] |  |  \- org.objenesis:objenesis:jar:2.1:test
[INFO] |  +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] |  +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] |  +- org.skyscreamer:jsonassert:jar:1.3.0:test
[INFO] |  \- org.springframework:spring-test:jar:4.3.2.RELEASE:test
[INFO] +- io.springfox:springfox-swagger-ui:jar:2.2.2:compile
[INFO] |  \- io.springfox:springfox-spring-web:jar:2.2.2:compile
[INFO] +- io.springfox:springfox-swagger2:jar:2.2.2:compile
[INFO] |  +- org.mapstruct:mapstruct:jar:1.0.0.CR1:compile
[INFO] |  +- io.swagger:swagger-annotations:jar:1.5.3:compile
[INFO] |  +- io.swagger:swagger-models:jar:1.5.3:compile
[INFO] |  +- io.springfox:springfox-spi:jar:2.2.2:compile
[INFO] |  |  \- io.springfox:springfox-core:jar:2.2.2:compile
[INFO] |  +- io.springfox:springfox-schema:jar:2.2.2:compile
[INFO] |  +- io.springfox:springfox-swagger-common:jar:2.2.2:compile
[INFO] |  +- com.google.guava:guava:jar:18.0:compile
[INFO] |  +- com.fasterxml:classmate:jar:1.3.1:compile
[INFO] |  +- org.slf4j:slf4j-api:jar:1.7.21:compile
[INFO] |  +- org.aspectj:aspectjrt:jar:1.8.9:compile
[INFO] |  +- org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile
[INFO] |  +- org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile
[INFO] |  \- org.springframework.hateoas:spring-hateoas:jar:0.20.0.RELEASE:compile
[INFO] +- junit:junit:jar:3.8.1:test
[INFO] +- com.chuanglan:sms-http:jar:1.0:system
[INFO] +- com.ali:pay:jar:1.0:system
[INFO] +- org.apache:commons-logging:jar:1.1.1:system
[INFO] +- org.nutz:nutz:jar:1.r.60:compile
[INFO] +- com.alibaba:fastjson:jar:1.2.16:compile
[INFO] +- com.gexin.platform:gexin-rp-sdk-base:jar:4.0.0.7:compile
[INFO] |  +- org.codehaus.jackson:jackson-all:jar:1.8.5:compile
[INFO] |  \- com.google.protobuf:protobuf-java:jar:2.5.0:compile
[INFO] +- com.gexin.platform:gexin-rp-sdk-http:jar:4.0.1.2:compile
[INFO] +- com.gexin.platform:gexin-rp-sdk-template:jar:4.0.0.4:compile
[INFO] +- org.springframework.boot:spring-boot-starter-freemarker:jar:1.4.0.RELEASE:compile
[INFO] |  \- org.freemarker:freemarker:jar:2.3.25-incubating:compile
[INFO] +- org.jdom:jdom:jar:1.1:compile
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.5.2:compile
[INFO] |  \- org.apache.httpcomponents:httpcore:jar:4.4.5:compile
[INFO] +- dom4j:dom4j:jar:1.6.1:compile
[INFO] |  \- xml-apis:xml-apis:jar:1.4.01:compile
[INFO] +- commons-codec:commons-codec:jar:1.10:compile
[INFO] +- com.mashape.unirest:unirest-java:jar:1.4.9:compile
[INFO] |  +- org.apache.httpcomponents:httpasyncclient:jar:4.1.2:compile
[INFO] |  |  \- org.apache.httpcomponents:httpcore-nio:jar:4.4.5:compile
[INFO] |  \- org.apache.httpcomponents:httpmime:jar:4.5.2:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-mongodb:jar:1.4.0.RELEASE:compile
[INFO] |  +- org.mongodb:mongodb-driver:jar:3.2.2:compile
[INFO] |  |  +- org.mongodb:mongodb-driver-core:jar:3.2.2:compile
[INFO] |  |  \- org.mongodb:bson:jar:3.2.2:compile
[INFO] |  \- org.springframework.data:spring-data-mongodb:jar:1.9.2.RELEASE:compile
[INFO] +- com.aliyun.openservices:ons-client:jar:1.2.7.Final:compile
[INFO] \- com.aliyun.mns:aliyun-sdk-mns:jar:1.1.8:compile
[INFO]    \- log4j:log4j:jar:1.2.17:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.700s
[INFO] Finished at: Wed Mar 01 19:11:27 CST 2017
[INFO] Final Memory: 24M/309M
[INFO] ------------------------------------------------------------------------

com.aliyun.mns:aliyun-sdk-mns 用的是1.2.17 我把它排除也不行...简直

还剩一个没排除哦

[INFO] +- com.aliyun.openservices:ons-client:jar:1.2.7.Final:compile
[INFO] \- com.aliyun.mns:aliyun-sdk-mns:jar:1.1.8:compile
[INFO]    \- log4j:log4j:jar:1.2.17:compile

啊...不够仔细怪我 怪我 我去试试


[INFO] +- com.qiniu:qiniu-java-sdk:jar:7.0.11:compile [INFO] | +- com.google.code.gson:gson:jar:2.7:compile [INFO] | \- com.squareup.okhttp:okhttp:jar:2.7.1:compile [INFO] | \- com.squareup.okio:okio:jar:1.6.0:compile [INFO] +- org.springframework.boot:spring-boot-starter-web:jar:1.4.0.RELEASE:compile [INFO] | +- org.springframework.boot:spring-boot-starter-tomcat:jar:1.4.0.RELEASE:compile [INFO] | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:8.5.4:compile [INFO] | | +- org.apache.tomcat.embed:tomcat-embed-el:jar:8.5.4:compile [INFO] | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.5.4:compile [INFO] | +- org.hibernate:hibernate-validator:jar:5.2.4.Final:compile [INFO] | | +- javax.validation:validation-api:jar:1.1.0.Final:compile [INFO] | | \- org.jboss.logging:jboss-logging:jar:3.3.0.Final:compile [INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.8.1:compile [INFO] | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.8.1:compile [INFO] | | \- com.fasterxml.jackson.core:jackson-core:jar:2.8.1:compile [INFO] | +- org.springframework:spring-web:jar:4.3.2.RELEASE:compile [INFO] | \- org.springframework:spring-webmvc:jar:4.3.2.RELEASE:compile [INFO] | \- org.springframework:spring-expression:jar:4.3.2.RELEASE:compile [INFO] +- org.springframework.boot:spring-boot-starter-aop:jar:1.4.0.RELEASE:compile [INFO] | +- org.springframework:spring-aop:jar:4.3.2.RELEASE:compile [INFO] | \- org.aspectj:aspectjweaver:jar:1.8.9:compile [INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:1.4.0.RELEASE:compile [INFO] | +- org.hibernate:hibernate-core:jar:5.0.9.Final:compile [INFO] | | +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compile [INFO] | | +- org.javassist:javassist:jar:3.20.0-GA:compile [INFO] | | +- antlr:antlr:jar:2.7.7:compile [INFO] | | +- org.jboss:jandex:jar:2.0.0.Final:compile [INFO] | | \- org.hibernate.common:hibernate-commons-annotations:jar:5.0.1.Final:compile [INFO] | +- org.hibernate:hibernate-entitymanager:jar:5.0.9.Final:compile [INFO] | +- javax.transaction:javax.transaction-api:jar:1.2:compile [INFO] | +- org.springframework.data:spring-data-jpa:jar:1.10.2.RELEASE:compile [INFO] | | +- org.springframework.data:spring-data-commons:jar:1.12.2.RELEASE:compile [INFO] | | +- org.springframework:spring-orm:jar:4.3.2.RELEASE:compile [INFO] | | \- org.springframework:spring-tx:jar:4.3.2.RELEASE:compile [INFO] | \- org.springframework:spring-aspects:jar:4.3.2.RELEASE:compile [INFO] +- org.springframework.boot:spring-boot-starter-data-redis:jar:1.4.0.RELEASE:compile [INFO] | +- org.springframework.data:spring-data-redis:jar:1.7.2.RELEASE:compile [INFO] | | +- org.springframework.data:spring-data-keyvalue:jar:1.1.2.RELEASE:compile [INFO] | | \- org.springframework:spring-oxm:jar:4.3.2.RELEASE:compile [INFO] | \- redis.clients:jedis:jar:2.8.2:compile [INFO] | \- org.apache.commons:commons-pool2:jar:2.4.2:compile [INFO] +- org.springframework.boot:spring-boot-configuration-processor:jar:1.4.0.RELEASE:compile [INFO] | +- org.json:json:jar:20140107:compile [INFO] | \- org.springframework:spring-core:jar:4.3.2.RELEASE:compile [INFO] +- org.springframework.session:spring-session:jar:1.2.1.RELEASE:compile [INFO] | \- commons-logging:commons-logging:jar:1.2:compile [INFO] +- org.springframework.boot:spring-boot-starter-jdbc:jar:1.4.0.RELEASE:compile [INFO] | +- org.apache.tomcat:tomcat-jdbc:jar:8.5.4:compile [INFO] | | \- org.apache.tomcat:tomcat-juli:jar:8.5.4:compile [INFO] | \- org.springframework:spring-jdbc:jar:4.3.2.RELEASE:compile [INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:1.4.0.RELEASE:compile [INFO] | \- org.springframework.boot:spring-boot-actuator:jar:1.4.0.RELEASE:compile [INFO] +- org.springframework:spring-context-support:jar:4.3.2.RELEASE:compile [INFO] | +- org.springframework:spring-beans:jar:4.3.2.RELEASE:compile [INFO] | \- org.springframework:spring-context:jar:4.3.2.RELEASE:compile [INFO] +- mysql:mysql-connector-java:jar:5.1.39:runtime [INFO] +- org.springframework.boot:spring-boot-starter:jar:1.4.0.RELEASE:compile [INFO] | +- org.springframework.boot:spring-boot:jar:1.4.0.RELEASE:compile [INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:1.4.0.RELEASE:compile [INFO] | \- org.yaml:snakeyaml:jar:1.17:runtime [INFO] +- org.springframework.boot:spring-boot-starter-log4j2:jar:1.4.0.RELEASE:compile [INFO] | +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.6.2:compile [INFO] | +- org.apache.logging.log4j:log4j-api:jar:2.6.2:compile [INFO] | +- org.apache.logging.log4j:log4j-core:jar:2.6.2:compile [INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.7.21:compile [INFO] | \- org.slf4j:jul-to-slf4j:jar:1.7.21:compile [INFO] +- com.alibaba:druid:jar:1.0.24:compile [INFO] +- com.relops:snowflake:jar:1.1:compile [INFO] +- commons-beanutils:commons-beanutils-core:jar:1.8.0:compile [INFO] +- org.apache.commons:commons-lang3:jar:3.1:compile [INFO] +- org.springframework.boot:spring-boot-starter-test:jar:1.4.0.RELEASE:test [INFO] | +- org.springframework.boot:spring-boot-test:jar:1.4.0.RELEASE:test [INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:1.4.0.RELEASE:test [INFO] | +- com.jayway.jsonpath:json-path:jar:2.2.0:test [INFO] | | \- net.minidev:json-smart:jar:2.2.1:test [INFO] | | \- net.minidev:accessors-smart:jar:1.1:test [INFO] | | \- org.ow2.asm:asm:jar:5.0.3:test [INFO] | +- org.assertj:assertj-core:jar:2.5.0:test [INFO] | +- org.mockito:mockito-core:jar:1.10.19:test [INFO] | | \- org.objenesis:objenesis:jar:2.1:test [INFO] | +- org.hamcrest:hamcrest-core:jar:1.3:test [INFO] | +- org.hamcrest:hamcrest-library:jar:1.3:test [INFO] | +- org.skyscreamer:jsonassert:jar:1.3.0:test [INFO] | \- org.springframework:spring-test:jar:4.3.2.RELEASE:test [INFO] +- io.springfox:springfox-swagger-ui:jar:2.2.2:compile [INFO] | \- io.springfox:springfox-spring-web:jar:2.2.2:compile [INFO] +- io.springfox:springfox-swagger2:jar:2.2.2:compile [INFO] | +- org.mapstruct:mapstruct:jar:1.0.0.CR1:compile [INFO] | +- io.swagger:swagger-annotations:jar:1.5.3:compile [INFO] | +- io.swagger:swagger-models:jar:1.5.3:compile [INFO] | +- io.springfox:springfox-spi:jar:2.2.2:compile [INFO] | | \- io.springfox:springfox-core:jar:2.2.2:compile [INFO] | +- io.springfox:springfox-schema:jar:2.2.2:compile [INFO] | +- io.springfox:springfox-swagger-common:jar:2.2.2:compile [INFO] | +- com.google.guava:guava:jar:18.0:compile [INFO] | +- com.fasterxml:classmate:jar:1.3.1:compile [INFO] | +- org.slf4j:slf4j-api:jar:1.7.21:compile [INFO] | +- org.aspectj:aspectjrt:jar:1.8.9:compile [INFO] | +- org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile [INFO] | +- org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile [INFO] | \- org.springframework.hateoas:spring-hateoas:jar:0.20.0.RELEASE:compile [INFO] +- junit:junit:jar:3.8.1:test [INFO] +- com.chuanglan:sms-http:jar:1.0:system [INFO] +- com.ali:pay:jar:1.0:system [INFO] +- org.apache:commons-logging:jar:1.1.1:system [INFO] +- org.nutz:nutz:jar:1.r.60:compile [INFO] +- com.alibaba:fastjson:jar:1.2.16:compile [INFO] +- com.gexin.platform:gexin-rp-sdk-base:jar:4.0.0.7:compile [INFO] | +- org.codehaus.jackson:jackson-all:jar:1.8.5:compile [INFO] | \- com.google.protobuf:protobuf-java:jar:2.5.0:compile [INFO] +- com.gexin.platform:gexin-rp-sdk-http:jar:4.0.1.2:compile [INFO] +- com.gexin.platform:gexin-rp-sdk-template:jar:4.0.0.4:compile [INFO] +- org.springframework.boot:spring-boot-starter-freemarker:jar:1.4.0.RELEASE:compile [INFO] | \- org.freemarker:freemarker:jar:2.3.25-incubating:compile [INFO] +- org.jdom:jdom:jar:1.1:compile [INFO] +- org.apache.httpcomponents:httpclient:jar:4.5.2:compile [INFO] | \- org.apache.httpcomponents:httpcore:jar:4.4.5:compile [INFO] +- dom4j:dom4j:jar:1.6.1:compile [INFO] | \- xml-apis:xml-apis:jar:1.4.01:compile [INFO] +- commons-codec:commons-codec:jar:1.10:compile [INFO] +- com.mashape.unirest:unirest-java:jar:1.4.9:compile [INFO] | +- org.apache.httpcomponents:httpasyncclient:jar:4.1.2:compile [INFO] | | \- org.apache.httpcomponents:httpcore-nio:jar:4.4.5:compile [INFO] | \- org.apache.httpcomponents:httpmime:jar:4.5.2:compile [INFO] +- org.springframework.boot:spring-boot-starter-data-mongodb:jar:1.4.0.RELEASE:compile [INFO] | +- org.mongodb:mongodb-driver:jar:3.2.2:compile [INFO] | | +- org.mongodb:mongodb-driver-core:jar:3.2.2:compile [INFO] | | \- org.mongodb:bson:jar:3.2.2:compile [INFO] | \- org.springframework.data:spring-data-mongodb:jar:1.9.2.RELEASE:compile [INFO] +- com.aliyun.openservices:ons-client:jar:1.2.7.Final:compile [INFO] \- com.aliyun.mns:aliyun-sdk-mns:jar:jar-with-dependencies:1.1.8:compile [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.950s [INFO] Finished at: Wed Mar 01 19:15:51 CST 2017 [INFO] Final Memory: 20M/309M [INFO] ------------------------------------------------------------------------

还是打印不出来 amen

debug一下Logs类,看看走什么了

有一个可能性是阿里那个jar内嵌了log4j

@wendal
启动项目后 nutz 输出 [Select SystemLog as Nutz.Log implement] 是否就没有使用系统的log4j2 呢?

原来是这个原因, 需要加

		<dependency>
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-1.2-api</artifactId>
			<version>2.6</version>
		</dependency>

@wendal 解决 多谢!
(java 的log体系 真是让人头疼 看来还是学艺不精啊 -,-)

添加回复
请先登陆
回到顶部