バージョンを切り替えるthymeleaf春ブーツ

春のブートスイッチの新バージョン常にエラー、いくつかの時間前に解決し、一瞬のために再度検索を、忘れてしまった、それを記録します。

オリジナル住所:https://blog.csdn.net/Mr_Mocha/article/details/97419945

pom.xmlファイルに以下の設定を追加

<プロパティ>
<thymeleaf.version> 3.0.9.RELEASE </thymeleaf.version>
<! -メインレイアウト機能は、上記LAYOUT2対応thymeleaf3サポートプログラム- >
<! -対応thymeleaf2 layout1バージョン- >
< dialect.versionレイアウト-Thymeleaf> 2.3.0 </thymeleaf-layout-dialect.version>
</プロパティ>
1
2
3
4
5
6
これらの二つの構成にそれを見つけるためにどのように?[公式文書には、私たちに語っています]

内側に対応した構成を見つけ、このファイルの春・ブートの依存関係を探します

エラー!

***************************
アプリケーションが起動に失敗しました
******************* ********

説明:

試みは、メソッドorg.thymeleaf.spring5.SpringTemplateEngine.setRenderHiddenMarkersBeforeCheckboxes(Z)Vをコールしましたが、それは存在しません。そのクラス、org.thymeleaf.spring5.SpringTemplateEngineは、次の場所から入手できます。

jarファイル:ファイル:/ D:!/OpenSources/MyRepository/org/thymeleaf/thymeleaf-spring5/3.0.9.RELEASE/thymeleaf-spring5-3.0.9.RELEASE.jar /org/thymeleaf/spring5/SpringTemplateEngine.class

これは、次の場所からロードされました:

ファイル:/ D:/OpenSources/MyRepository/org/thymeleaf/thymeleaf-spring5/3.0.9.RELEASE/thymeleaf-spring5-3.0.9.RELEASE.jar


アクション:

それはorg.thymeleaf.spring5.SpringTemplateEngineの単一の、互換性のあるバージョン含まれるように、アプリケーションのクラスパスを修正する
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
解决方案:

<プロパティ>
<springboot-thymeleaf.version> 3.0.9.RELEASE </springboot-thymeleaf.version>
<thymeleafレイアウト-dialect.version> 2.3.0 </thymeleaf-layout-dialect.version>
</プロパティ>
1
2
3
4
问题分析:

ここでは、ラベルを行うorg.thymeleafと競合する可能性があり、パッケージに結果が権利を得ることはありません春ブート・スタータthymeleafはorg.springframework.bootの下にある、<thymeleaf.version>を使用します
--------- -------
免責事項:この記事は元の記事CSDNブロガー「ミスター・モカ」とBY-SAの著作権契約、複製、元のソースのリンクと、この文を添付してくださいCC 4.0に従っています。
オリジナルリンクします。https://blog.csdn.net/Mr_Mocha/article/details/97419945

おすすめ

転載: www.cnblogs.com/linwenbin/p/11441336.html