![](/img/trans.png)
[英]hibernate jpa with java configuration using spring instead of xml
[英]Enable absolute ordering in spring using java based configuration instead of xml
我想使用 java 代碼配置添加/啟用absolute-ordering
。 下面是我們在web.xml
中進行的基於 xml 的配置
<absolute-ordering/>
我有一個使用 @Coniguration 和 @EnableWebMvc 配置的 class 和另一個實現WebApplicationInitializer
接口的 class 。
它對我有用。
顯然,您的 class 路徑上有多個spring-web
或spring-webmvc
jars 。 或者也提供該文件的其他依賴項。 從類路徑中刪除源 jars。 文件名是spring-web-5.3.0-sources.jar
和spring-webmvc-5.3.0-sources.jar
我在這個鏈接上找到了解決方案
對於 xml 基本配置,請使用:將<absolute-ordering />
標簽添加到您的 web.xml 的標簽下方。 應該可以正常工作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.