项目启动报错

来源:2-7 写个简单的Hello World

乡下老干爹

2019-04-05 12:27

https://img2.mukewang.com/5ca6d8f00001c65912670318.jpg 老师,麻烦问下这个是什么原因造成

写回答 关注

3回答

  • Debug_SteadyJack
    2019-04-07 09:55:51
    已采纳

    clean install项目;

    另外,最好看着视频教程来一步一步照着搭建!

  • 乡下老干爹
    2019-04-07 14:38:05

    老师,麻烦您把代码给我一份,可以吗?

  • 乡下老干爹
    2019-04-07 12:52:16

    老师,我是跟着视频来做的,但是现在又出现了一个日志冲突的问题。

    E:\jdk\Java\jdk1.8.0_20\bin\java.exe -javaagent:C:\Users\Administrator\.IntelliJIdea2019.1\system\testAgent\intellij-coverage-agent-1.0.495.jar=C:\Users\Administrator\AppData\Local\Temp\coverage8args -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-javaagent:E:\IntelliJ IDEA\JetBrains\IntelliJ IDEA 2019.1\lib\idea_rt.jar=59302:E:\IntelliJ IDEA\JetBrains\IntelliJ IDEA 2019.1\bin" -Dfile.encoding=UTF-8 -classpath E:\jdk\Java\jdk1.8.0_20\jre\lib\charsets.jar;E:\jdk\Java\jdk1.8.0_20\jre\lib\deploy.jar;E:\jdk\Java\jdk1.8.0_20\jre\lib\ext\access-bridge-64.jar;E:\jdk\Java\jdk1.8.0_20\jre\lib\ext\cldrdata.jar;E:\jdk\Java\jdk1.8.0_20\jre\lib\ext\dnsns.jar;E:\jdk\Java\jdk1.8.0_20\jre\lib\ext\jaccess.jar;E:\jdk\Java\jdk1.8.0_20\jre\lib\ext\jfxrt.jar;E:\jdk\Java\jdk1.8.0_20\jre\lib\ext\localedata.jar;E:\jdk\Java\jdk1.8.0_20\jre\lib\ext\nashorn.jar;E:\jdk\Java\jdk1.8.0_20\jre\lib\ext\sunec.jar;E:\jdk\Java\jdk1.8.0_20\jre\lib\ext\sunjce_provider.jar;E:\jdk\Java\jdk1.8.0_20\jre\lib\ext\sunmscapi.jar;E:\jdk\Java\jdk1.8.0_20\jre\lib\ext\sunpkcs11.jar;E:\jdk\Java\jdk1.8.0_20\jre\lib\ext\zipfs.jar;E:\jdk\Java\jdk1.8.0_20\jre\lib\javaws.jar;E:\jdk\Java\jdk1.8.0_20\jre\lib\jce.jar;E:\jdk\Java\jdk1.8.0_20\jre\lib\jfr.jar;E:\jdk\Java\jdk1.8.0_20\jre\lib\jfxswt.jar;E:\jdk\Java\jdk1.8.0_20\jre\lib\jsse.jar;E:\jdk\Java\jdk1.8.0_20\jre\lib\management-agent.jar;E:\jdk\Java\jdk1.8.0_20\jre\lib\plugin.jar;E:\jdk\Java\jdk1.8.0_20\jre\lib\resources.jar;E:\jdk\Java\jdk1.8.0_20\jre\lib\rt.jar;G:\mavenWorkspace\dubboTwo\server\target\classes;G:\mavenWorkspace\dubboTwo\model\target\classes;G:\mavenWorkspace\dubboTwo\api\target\classes;G:\.m2\repository\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar;G:\.m2\repository\org\hibernate\hibernate-validator\5.2.4.Final\hibernate-validator-5.2.4.Final.jar;G:\.m2\repository\org\jboss\logging\jboss-logging\3.3.0.Final\jboss-logging-3.3.0.Final.jar;G:\.m2\repository\com\fasterxml\classmate\1.1.0\classmate-1.1.0.jar;G:\.m2\repository\com\github\pagehelper\pagehelper\5.1.8\pagehelper-5.1.8.jar;G:\.m2\repository\com\github\jsqlparser\jsqlparser\1.2\jsqlparser-1.2.jar;G:\.m2\repository\org\projectlombok\lombok\1.18.6\lombok-1.18.6.jar;G:\.m2\repository\org\mybatis\spring\boot\mybatis-spring-boot-starter\2.0.0\mybatis-spring-boot-starter-2.0.0.jar;G:\.m2\repository\org\mybatis\spring\boot\mybatis-spring-boot-autoconfigure\2.0.0\mybatis-spring-boot-autoconfigure-2.0.0.jar;G:\.m2\repository\org\mybatis\mybatis\3.5.0\mybatis-3.5.0.jar;G:\.m2\repository\org\slf4j\slf4j-api\1.7.13\slf4j-api-1.7.13.jar;G:\.m2\repository\org\slf4j\slf4j-log4j12\1.7.13\slf4j-log4j12-1.7.13.jar;G:\.m2\repository\log4j\log4j\1.2.17\log4j-1.2.17.jar;G:\.m2\repository\com\google\guava\guava\19.0\guava-19.0.jar;G:\.m2\repository\joda-time\joda-time\2.9.2\joda-time-2.9.2.jar;G:\.m2\repository\mysql\mysql-connector-java\8.0.15\mysql-connector-java-8.0.15.jar;G:\.m2\repository\com\google\protobuf\protobuf-java\3.6.1\protobuf-java-3.6.1.jar;G:\.m2\repository\org\springframework\boot\spring-boot-starter-jdbc\1.3.3.RELEASE\spring-boot-starter-jdbc-1.3.3.RELEASE.jar;G:\.m2\repository\org\springframework\boot\spring-boot-starter\1.3.3.RELEASE\spring-boot-starter-1.3.3.RELEASE.jar;G:\.m2\repository\org\springframework\boot\spring-boot\1.3.3.RELEASE\spring-boot-1.3.3.RELEASE.jar;G:\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\1.3.3.RELEASE\spring-boot-autoconfigure-1.3.3.RELEASE.jar;G:\.m2\repository\org\springframework\boot\spring-boot-starter-logging\1.3.3.RELEASE\spring-boot-starter-logging-1.3.3.RELEASE.jar;G:\.m2\repository\ch\qos\logback\logback-classic\1.1.5\logback-classic-1.1.5.jar;G:\.m2\repository\ch\qos\logback\logback-core\1.1.5\logback-core-1.1.5.jar;G:\.m2\repository\org\slf4j\jcl-over-slf4j\1.7.16\jcl-over-slf4j-1.7.16.jar;G:\.m2\repository\org\slf4j\jul-to-slf4j\1.7.16\jul-to-slf4j-1.7.16.jar;G:\.m2\repository\org\slf4j\log4j-over-slf4j\1.7.16\log4j-over-slf4j-1.7.16.jar;G:\.m2\repository\org\yaml\snakeyaml\1.16\snakeyaml-1.16.jar;G:\.m2\repository\org\apache\tomcat\tomcat-jdbc\8.0.32\tomcat-jdbc-8.0.32.jar;G:\.m2\repository\org\apache\tomcat\tomcat-juli\8.0.32\tomcat-juli-8.0.32.jar;G:\.m2\repository\org\springframework\spring-jdbc\4.2.5.RELEASE\spring-jdbc-4.2.5.RELEASE.jar;G:\.m2\repository\org\springframework\spring-tx\4.2.5.RELEASE\spring-tx-4.2.5.RELEASE.jar;G:\.m2\repository\com\alibaba\druid\1.0.16\druid-1.0.16.jar;E:\jdk\Java\jdk1.8.0_20\lib\jconsole.jar;E:\jdk\Java\jdk1.8.0_20\lib\tools.jar;G:\.m2\repository\org\springframework\boot\spring-boot-starter-web\1.3.3.RELEASE\spring-boot-starter-web-1.3.3.RELEASE.jar;G:\.m2\repository\org\springframework\boot\spring-boot-starter-validation\1.3.3.RELEASE\spring-boot-starter-validation-1.3.3.RELEASE.jar;G:\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.6.5\jackson-databind-2.6.5.jar;G:\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.6.5\jackson-annotations-2.6.5.jar;G:\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.6.5\jackson-core-2.6.5.jar;G:\.m2\repository\org\springframework\spring-web\4.2.5.RELEASE\spring-web-4.2.5.RELEASE.jar;G:\.m2\repository\org\springframework\spring-aop\4.2.5.RELEASE\spring-aop-4.2.5.RELEASE.jar;G:\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;G:\.m2\repository\org\springframework\spring-webmvc\4.2.5.RELEASE\spring-webmvc-4.2.5.RELEASE.jar;G:\.m2\repository\org\springframework\spring-expression\4.2.5.RELEASE\spring-expression-4.2.5.RELEASE.jar;G:\.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\1.3.3.RELEASE\spring-boot-starter-tomcat-1.3.3.RELEASE.jar;G:\.m2\repository\org\apache\tomcat\embed\tomcat-embed-core\8.0.32\tomcat-embed-core-8.0.32.jar;G:\.m2\repository\org\apache\tomcat\embed\tomcat-embed-el\8.0.32\tomcat-embed-el-8.0.32.jar;G:\.m2\repository\org\apache\tomcat\embed\tomcat-embed-logging-juli\8.0.32\tomcat-embed-logging-juli-8.0.32.jar;G:\.m2\repository\org\apache\tomcat\embed\tomcat-embed-websocket\8.0.32\tomcat-embed-websocket-8.0.32.jar;G:\.m2\repository\org\apache\tomcat\embed\tomcat-embed-jasper\8.0.32\tomcat-embed-jasper-8.0.32.jar;G:\.m2\repository\org\eclipse\jdt\core\compiler\ecj\4.4.2\ecj-4.4.2.jar;G:\.m2\repository\javax\servlet\jstl\1.2\jstl-1.2.jar;G:\.m2\repository\com\alibaba\dubbo\2.5.5\dubbo-2.5.5.jar;G:\.m2\repository\org\springframework\spring-context\4.2.5.RELEASE\spring-context-4.2.5.RELEASE.jar;G:\.m2\repository\org\springframework\spring-beans\4.2.5.RELEASE\spring-beans-4.2.5.RELEASE.jar;G:\.m2\repository\org\javassist\javassist\3.18.1-GA\javassist-3.18.1-GA.jar;G:\.m2\repository\org\jboss\netty\netty\3.2.5.Final\netty-3.2.5.Final.jar;G:\.m2\repository\org\apache\zookeeper\zookeeper\3.4.10\zookeeper-3.4.10.jar;G:\.m2\repository\jline\jline\0.9.94\jline-0.9.94.jar;G:\.m2\repository\io\netty\netty\3.10.5.Final\netty-3.10.5.Final.jar;G:\.m2\repository\org\apache\curator\curator-framework\2.12.0\curator-framework-2.12.0.jar;G:\.m2\repository\org\apache\curator\curator-client\2.12.0\curator-client-2.12.0.jar;G:\.m2\repository\org\jboss\resteasy\resteasy-jaxrs\3.0.7.Final\resteasy-jaxrs-3.0.7.Final.jar;G:\.m2\repository\org\jboss\resteasy\jaxrs-api\3.0.7.Final\jaxrs-api-3.0.7.Final.jar;G:\.m2\repository\org\jboss\spec\javax\annotation\jboss-annotations-api_1.1_spec\1.0.1.Final\jboss-annotations-api_1.1_spec-1.0.1.Final.jar;G:\.m2\repository\javax\activation\activation\1.1\activation-1.1.jar;G:\.m2\repository\commons-io\commons-io\2.1\commons-io-2.1.jar;G:\.m2\repository\net\jcip\jcip-annotations\1.0\jcip-annotations-1.0.jar;G:\.m2\repository\org\jboss\resteasy\resteasy-client\3.0.7.Final\resteasy-client-3.0.7.Final.jar;G:\.m2\repository\org\jboss\resteasy\resteasy-netty\3.0.7.Final\resteasy-netty-3.0.7.Final.jar;G:\.m2\repository\org\jboss\resteasy\resteasy-jackson-provider\3.0.7.Final\resteasy-jackson-provider-3.0.7.Final.jar;G:\.m2\repository\org\codehaus\jackson\jackson-core-asl\1.9.12\jackson-core-asl-1.9.12.jar;G:\.m2\repository\org\codehaus\jackson\jackson-mapper-asl\1.9.12\jackson-mapper-asl-1.9.12.jar;G:\.m2\repository\org\codehaus\jackson\jackson-jaxrs\1.9.12\jackson-jaxrs-1.9.12.jar;G:\.m2\repository\org\codehaus\jackson\jackson-xc\1.9.12\jackson-xc-1.9.12.jar;G:\.m2\repository\org\springframework\spring-core\4.2.5.RELEASE\spring-core-4.2.5.RELEASE.jar;G:\.m2\repository\com\google\code\gson\gson\2.6.1\gson-2.6.1.jar;G:\.m2\repository\com\squareup\okhttp3\okhttp\3.1.2\okhttp-3.1.2.jar;G:\.m2\repository\com\squareup\okio\okio\1.6.0\okio-1.6.0.jar;G:\.m2\repository\org\mybatis\mybatis-spring\2.0.0\mybatis-spring-2.0.0.jar com.biao.dubbo.two.server.BootMoreApplication

    ---- IntelliJ IDEA coverage runner ---- 

    sampling ...

    include patterns:

    exclude patterns:

    SLF4J: Class path contains multiple SLF4J bindings.

    SLF4J: Found binding in [jar:file:/G:/.m2/repository/org/slf4j/slf4j-log4j12/1.7.13/slf4j-log4j12-1.7.13.jar!/org/slf4j/impl/StaticLoggerBinder.class]

    SLF4J: Found binding in [jar:file:/G:/.m2/repository/ch/qos/logback/logback-classic/1.1.5/logback-classic-1.1.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]

    SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

    SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]

    Exception in thread "main" java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.impl.Log4jLoggerFactory loaded from file:/G:/.m2/repository/org/slf4j/slf4j-log4j12/1.7.13/slf4j-log4j12-1.7.13.jar). If you are using WebLogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml Object of class [org.slf4j.impl.Log4jLoggerFactory] must be an instance of class ch.qos.logback.classic.LoggerContext

    at org.springframework.util.Assert.isInstanceOf(Assert.java:346)

    at org.springframework.boot.logging.logback.LogbackLoggingSystem.getLoggerContext(LogbackLoggingSystem.java:221)

    at org.springframework.boot.logging.logback.LogbackLoggingSystem.getLogger(LogbackLoggingSystem.java:213)

    at org.springframework.boot.logging.logback.LogbackLoggingSystem.beforeInitialize(LogbackLoggingSystem.java:98)

    at org.springframework.boot.logging.LoggingApplicationListener.onApplicationStartedEvent(LoggingApplicationListener.java:216)

    at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:198)

    at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:163)

    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:136)

    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:119)

    at org.springframework.boot.context.event.EventPublishingRunListener.publishEvent(EventPublishingRunListener.java:111)

    at org.springframework.boot.context.event.EventPublishingRunListener.started(EventPublishingRunListener.java:60)

    at org.springframework.boot.SpringApplicationRunListeners.started(SpringApplicationRunListeners.java:48)

    at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)

    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1191)

    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1180)

    at com.biao.dubbo.two.server.BootMoreApplication.main(BootMoreApplication.java:21)

    Class transformation time: 0.288979663s for 1151 classes or 2.510683431798436E-4s per class


    Process finished with exit code 1


2小时实战Apache顶级项目-RPC框架Dubbo分布式服务调度

快速入门并实战分布式任务调度框架Dubbo

20338 学习 · 145 问题

查看课程

相似问题