在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/Java/ spring boot v1.5.8.RELEASE 啟動(dòng)失敗

spring boot v1.5.8.RELEASE 啟動(dòng)失敗

spring boot v1.5.8.RELEASE 啟動(dòng)失敗

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.example</groupId>
    <artifactId>demo</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <packaging>jar</packaging>

    <name>demo</name>
    <description>Demo project for Spring Boot</description>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.5.8.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <java.version>1.8</java.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>


</project>

. _
/\ / ' _(_) _ \
( ( )__ | ' | '_| | '_ / _` | \
\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |___, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.5.8.RELEASE)

2017-10-23 17:14:08.638 INFO 6708 --- [ main] com.example.demo.DemoApplication : Starting DemoApplication on Youme-T450s with PID 6708 (D:EclipseProjectsdemotargetclasses started by Youme in D:EclipseProjectsdemo)
2017-10-23 17:14:08.654 INFO 6708 --- [ main] com.example.demo.DemoApplication : No active profile set, falling back to default profiles: default
2017-10-23 17:14:08.701 INFO 6708 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@17baae6e: startup date [Mon Oct 23 17:14:08 CST 2017]; root of context hierarchy
2017-10-23 17:14:09.647 INFO 6708 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2017-10-23 17:14:09.662 INFO 6708 --- [ main] com.example.demo.DemoApplication : Started DemoApplication in 1.305 seconds (JVM running for 1.643)
2017-10-23 17:14:09.662 INFO 6708 --- [ Thread-2] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@17baae6e: startup date [Mon Oct 23 17:14:08 CST 2017]; root of context hierarchy
2017-10-23 17:14:09.662 INFO 6708 --- [ Thread-2] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown
但是換成v1.5.7.RELEASE就好了,很郁悶,Maven清理好多遍沒有用。。

回答
編輯回答
菊外人

debug=true

2018年5月8日 22:05
編輯回答
夏木

應(yīng)該是少了依賴吧,試試添加下面的第一個(gè)依賴
<dependencies>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>
</dependencies>
2017年1月11日 10:12
編輯回答
替身

我剛接觸spring boot沒多久,也是在幾天前使用1.5.8版本的時(shí)候遇到相同的問題,我是使用STS創(chuàng)建的工程,都是通過工具自動(dòng)生成的maven依賴并在線更新,后來?yè)Q到1.4.7就沒有問題。我現(xiàn)在寫這個(gè)的時(shí)候spring boot剛升級(jí)到1.5.9版本,我也試了試,沒有出現(xiàn)這個(gè)問題,可以正常啟動(dòng)內(nèi)置tomcat,但是我添加spring cloud相關(guān)依賴后,控制臺(tái)又報(bào)錯(cuò)(應(yīng)該是版本兼容有問題)導(dǎo)致不能啟動(dòng)。但是我百度的時(shí)候也有人基于1.5.8版本寫了些文章,所以就不知道這個(gè)到底是什么情況。。。個(gè)人感覺1.5.x版本穩(wěn)定性有待商榷。感覺spring官方似乎把精力都投入到2.x版本上了。所有我建議暫時(shí)還是使用1.4.7版本

2017年5月6日 10:02
編輯回答
怣痛

樓主有找到原因嗎?我也遇到這個(gè)問題,其他版本是好的

2017年9月7日 02:46
編輯回答
命多硬

添加以下依賴:

<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-tomcat</artifactId>
</dependency>
2017年9月11日 20:19
編輯回答
莓森

配置文件路徑不對(duì),看一下你的idea

2017年11月11日 03:58