spring - 当 Spring 应用程序无法通过“'uriComponentContributors' 不能为空”异常启动时
问题描述
我有 Grails 3.0.11 项目(基于 spring boot),升级到 grails 3.3.12 后,它无法通过“ 'uriComponentContributors' 不能为空”IllegalArgumentException 异常启动。错误是这样的:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mvcUriComponentsContributor' defined in class path resource [org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfiguration.class]: Bean instantiation via factory method failed;
nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.method.support.CompositeUriComponentsContributor]: Factory method 'mvcUriComponentsContributor' threw exception; nested exception is java.lang.IllegalArgumentException: 'uriComponentsContributors' must not be null
java.lang.IllegalArgumentException: 'uriComponentsContributors' must not be null
at org.springframework.util.Assert.notNull(Assert.java:134) ~[spring-core-4.3.25.RELEASE.jar:4.3.25.RELEASE]
我想知道“'uriComponentContributors' 不能为空”IllegalArgumentException 何时发生,以及如何调试以找到问题。
谢谢。
解决方案
推荐阅读
- sql - SQL Server 2016 时态表为“GENERATED”抛出不正确的语法
- android - 将 @RunWith(PowerMockrunner.class) 添加到测试中会提供所有其他测试 NPE
- javascript - 使用 javascript 通过标题获取 iframe
- ssms - ApexSQL Complete 还是 Redgate SQL 提示?
- python - 与 pygit2 合并时,HEAD 与原点/主控分离
- regex - 如何匹配两个单词之间的字符串,但只匹配两个单词的“壁橱”?
- reactjs - 如何正确更改对象数组的状态值?
- javascript - 具有多个 y 轴和不同比例的 Chartjs
- three.js - 改变相机看物体的方式
- c# - 我怎样才能让一个按钮像一个开关一样,或者使用一个开关并使开关看起来像一个按钮?