springboot2.3之后hibernate-validator依賴缺失【踩坑】
springboot2.3之后,hibernate-validator依賴缺失
今天在寫項(xiàng)目的時(shí)候,發(fā)現(xiàn)@Blank注解沒有了,檢查了一下,發(fā)現(xiàn)老版本springboot內(nèi)集成的hibernate-validator依賴已經(jīng)去掉了
如圖,當(dāng)前版本2.4.0的spring-boot-starter-web包
版本2.1.3
在網(wǎng)上查閱了一下:
官方解釋
解決方法:
在pom文件里手動(dòng)加入依賴
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-validation --><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifactId> <version>2.3.5.RELEASE</version></dependency>
到此這篇關(guān)于springboot2.3之后hibernate-validator依賴缺失【踩坑】的文章就介紹到這了,更多相關(guān)springboot hibernate-validator依賴缺失內(nèi)容請(qǐng)搜索好吧啦網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持好吧啦網(wǎng)!
相關(guān)文章:
1. XML入門的常見問題(一)2. html小技巧之td,div標(biāo)簽里內(nèi)容不換行3. PHP字符串前后字符或空格刪除方法介紹4. jsp cookie+session實(shí)現(xiàn)簡(jiǎn)易自動(dòng)登錄5. jsp實(shí)現(xiàn)登錄界面6. css進(jìn)階學(xué)習(xí) 選擇符7. 將properties文件的配置設(shè)置為整個(gè)Web應(yīng)用的全局變量實(shí)現(xiàn)方法8. 解析原生JS getComputedStyle9. Echarts通過(guò)dataset數(shù)據(jù)集實(shí)現(xiàn)創(chuàng)建單軸散點(diǎn)圖10. AspNetCore&MassTransit Courier實(shí)現(xiàn)分布式事務(wù)的詳細(xì)過(guò)程
