第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

加入spring-boot-starter-web的話@Configuration路由無(wú)法生效

<parent>
????<groupId>org.springframework.boot</groupId>
????<artifactId>spring-boot-starter-parent</artifactId>
????<version>2.1.0.BUILD-SNAPSHOT</version>
</parent>
<repositories>
????<repository>
????????<id>spring-snapshots</id>
????????<name>Spring?Snapshots</name>
????????<url>https://repo.spring.io/libs-snapshot</url>
????????<snapshots>
????????????<enabled>true</enabled>
????????</snapshots>
????</repository>
</repositories>

之前我沒(méi)有加入spring-boot-starter-web依賴的時(shí)候

https://img1.sycdn.imooc.com//5aea85e600017c3d08910220.jpg

是可以訪問(wèn)到

https://img1.sycdn.imooc.com//5aea861c0001fe4608410213.jpg

這個(gè)路由的

但是加上

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

這個(gè)依賴之后

https://img1.sycdn.imooc.com//5aea866c00015edf08570282.jpg

就沒(méi)有@Configuration配置的路由了,也訪問(wèn)不到,只能訪問(wèn)到@RestController

這是版本的問(wèn)題嗎?還是我哪里配置錯(cuò)了

正在回答

3 回答

同問(wèn),為什么Tomcat不行

0 回復(fù) 有任何疑惑可以回復(fù)我~

使用spring-boot-starter-web模塊后,默認(rèn)使用Netty容器吧

0 回復(fù) 有任何疑惑可以回復(fù)我~

使用spring-boot-starter-web模塊后,默認(rèn)使用了tomcat容器

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

成佛的小兔幾 提問(wèn)者

問(wèn)題是Tomcat為什么不行
2018-05-29 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

加入spring-boot-starter-web的話@Configuration路由無(wú)法生效

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)