最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

springboot 2.3之后消失的hibernate-validator解決方法

 更新時間:2020年08月12日 11:08:12   作者:在開發(fā)的路上越走越遠(yuǎn)  
這篇文章主要介紹了springboot 2.3之后消失的hibernate-validator解決方法,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧

項目升級到springboot2.3之后,參數(shù)校驗的注解報錯,發(fā)現(xiàn)spring-boot-starter-web的依賴項已經(jīng)去除了依賴

點開spring-boot-starter-web源碼看了下。

<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <!-- This module was also published with a richer model, Gradle metadata, -->
 <!-- which should be used instead. Do not delete the following line which -->
 <!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
 <!-- that they should prefer consuming it instead. -->
 <!-- do_not_remove: published-with-gradle-metadata -->
 <modelVersion>4.0.0</modelVersion>
 <groupId>org.springframework.boot</groupId>
 <artifactId>spring-boot-starter-web</artifactId>
 <version>2.3.1.RELEASE</version>
 <name>spring-boot-starter-web</name>
 <description>Starter for building web, including RESTful, applications using Spring MVC. Uses Tomcat as the default embedded container</description>
 <url>https://spring.io/projects/spring-boot</url>
 <organization>
  <name>Pivotal Software, Inc.</name>
  <url>https://spring.io</url>
 </organization>
 <licenses>
  <license>
   <name>Apache License, Version 2.0</name>
   <url>https://www.apache.org/licenses/LICENSE-2.0</url>
  </license>
 </licenses>
 <developers>
  <developer>
   <name>Pivotal</name>
   <email>info@pivotal.io</email>
   <organization>Pivotal Software, Inc.</organization>
   <organizationUrl>https://www.spring.io</organizationUrl>
  </developer>
 </developers>
 <scm>
  <connection>scm:git:git://github.com/spring-projects/spring-boot.git</connection>
  <developerConnection>scm:git:ssh://git@github.com/spring-projects/spring-boot.git</developerConnection>
  <url>https://github.com/spring-projects/spring-boot</url>
 </scm>
 <issueManagement>
  <system>GitHub</system>
  <url>https://github.com/spring-projects/spring-boot/issues</url>
 </issueManagement>
 <dependencyManagement>
  <dependencies>
   <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-dependencies</artifactId>
    <version>2.3.1.RELEASE</version>
    <type>pom</type>
    <scope>import</scope>
   </dependency>
  </dependencies>
 </dependencyManagement>
 <dependencies>
  <dependency>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-starter</artifactId>
   <version>2.3.1.RELEASE</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-starter-json</artifactId>
   <version>2.3.1.RELEASE</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-starter-tomcat</artifactId>
   <version>2.3.1.RELEASE</version>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-web</artifactId>
   <scope>compile</scope>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-webmvc</artifactId>
   <scope>compile</scope>
  </dependency>
 </dependencies>
</project>

沒有發(fā)現(xiàn) hibernate-validator

原版本如下:

<dependency>
   <groupId>org.hibernate.validator</groupId>
   <artifactId>hibernate-validator</artifactId>
   <version>6.0.17.Final</version>
   <scope>compile</scope>
 </dependency>

剛看了一下官方文檔。需要手動引入

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

到此這篇關(guān)于springboot 2.3之后消失的hibernate-validator解決方法的文章就介紹到這了,更多相關(guān)springboot2.3 hibernate-validator內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

  • Spring BPP中如何優(yōu)雅的創(chuàng)建動態(tài)代理Bean詳解

    Spring BPP中如何優(yōu)雅的創(chuàng)建動態(tài)代理Bean詳解

    這篇文章主要給大家介紹了關(guān)于Spring BPP中如何優(yōu)雅的創(chuàng)建動態(tài)代理Bean的相關(guān)資料,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面來一起學(xué)習(xí)學(xué)習(xí)吧
    2019-03-03
  • mybatis-plus用insertBatchSomeColumn方法批量新增指定字段

    mybatis-plus用insertBatchSomeColumn方法批量新增指定字段

    mybatisPlus底層的新增方法是一條一條的新增的,下面這篇文章主要給大家介紹了關(guān)于mybatis-plus用insertBatchSomeColumn方法批量新增指定字段的相關(guān)資料,文中通過實例代碼介紹的非常詳細(xì),需要的朋友可以參考下
    2023-05-05
  • Java中StringBuilder類常用方法總結(jié)

    Java中StringBuilder類常用方法總結(jié)

    這篇文章主要介紹了Java中StringBuilder類常用方法的相關(guān)資料,StringBuilder類是Java中用于頻繁修改字符串的可變字符串緩沖區(qū)類,它提供了多種方法進(jìn)行字符串操作,如添加、插入、刪除、替換字符等,需要的朋友可以參考下
    2024-12-12
  • Java如何使用poi導(dǎo)入導(dǎo)出excel工具類

    Java如何使用poi導(dǎo)入導(dǎo)出excel工具類

    這篇文章主要介紹了Java如何使用poi導(dǎo)入導(dǎo)出excel工具類問題,具有很好的參考價值,希望對大家有所幫助,如有錯誤或未考慮完全的地方,望不吝賜教
    2024-06-06
  • Java 配置log4j日志文件路徑 (附-獲取當(dāng)前類路徑的多種操作)

    Java 配置log4j日志文件路徑 (附-獲取當(dāng)前類路徑的多種操作)

    這篇文章主要介紹了Java 配置log4j日志文件路徑 (附-獲取當(dāng)前類路徑的多種操作),具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧
    2020-10-10
  • SpringBoot異步使用@Async的原理以及線程池配置詳解

    SpringBoot異步使用@Async的原理以及線程池配置詳解

    在項目中當(dāng)訪問其他人的接口較慢時,不想程序一直卡在耗時任務(wù)上,想程序能夠并行執(zhí)行,我們可以使用多線程來并行的處理任務(wù),也可以使用spring提供的異步處理方式@Async,這篇文章主要給大家介紹了關(guān)于SpringBoot異步使用@Async的原理以及線程池配置的相關(guān)資料
    2021-09-09
  • Java 文件傳輸助手的實現(xiàn)(單機(jī)版)

    Java 文件傳輸助手的實現(xiàn)(單機(jī)版)

    這篇文章主要介紹了Java 文件傳輸助手的實現(xiàn)(單機(jī)版),文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2020-05-05
  • JAVA異常信息Exception?e及e的相關(guān)方法解讀

    JAVA異常信息Exception?e及e的相關(guān)方法解讀

    這篇文章主要介紹了JAVA異常信息Exception?e及e的相關(guān)方法解讀,具有很好的參考價值,希望對大家有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教
    2023-06-06
  • java利用delayedQueue實現(xiàn)本地的延遲隊列

    java利用delayedQueue實現(xiàn)本地的延遲隊列

    這篇文章主要給大家介紹了java利用delayedQueue實現(xiàn)本地的延遲隊列的相關(guān)資料,文中介紹的非常詳細(xì),相信對大家具有一定的參考價值,需要的朋友們下面來一起看看吧。
    2017-04-04
  • 解決redisTemplate向redis中插入String類型數(shù)據(jù)時出現(xiàn)亂碼問題

    解決redisTemplate向redis中插入String類型數(shù)據(jù)時出現(xiàn)亂碼問題

    這篇文章主要介紹了解決redisTemplate向redis中插入String類型數(shù)據(jù)時出現(xiàn)亂碼問題,具有很好的參考價值,希望對大家有所幫助,如有錯誤或未考慮完全的地方,望不吝賜教
    2023-12-12

最新評論

海城市| 邢台县| 军事| 定陶县| 通化市| 滨海县| 昭平县| 古蔺县| 江口县| 环江| 达孜县| 平定县| 故城县| 右玉县| 牙克石市| 锡林郭勒盟| 大理市| 瑞丽市| 密山市| 汉沽区| 永德县| 英德市| 蚌埠市| 东港市| 丹棱县| 靖安县| 金秀| 江西省| 新津县| 吉水县| 板桥市| 沅江市| 和龙市| 泽普县| 綦江县| 天门市| 正定县| 孙吴县| 定西市| 宜阳县| 尼玛县|