映射:“projectId”不以 / 开头或者是响应代码

问题描述 投票:0回答:1

我最近在我的 grails 应用程序中进行了一系列 UrlMappings 重构。 现在我收到以下错误,我什至不知道该深入哪里。 我已经重新检查了我能检查的一切。甚至恢复了我更改的 UrlMappings 文件。仍然遇到同样的错误:

''2024-04-14 14:10:15.533  WARN --- [  restartedMain] org.hibernate.orm.cache                  : HHH90001006: Missing cache[priz.api.tools.forty_principles.MatrixElement] was created on-the-fly. The created cache will use a provider-specific default configuration: make sure you defined one. You can disable this warning by setting 'hibernate.cache.ehcache.missing_cache_strategy' to 'create'.
''2024-04-14 14:10:18.616 ERROR --- [  restartedMain] ultUrlMappingEvaluator$UrlMappingBuilder : Mapping: 'projectId' does not start with / or is response code.
''2024-04-14 14:10:18.647 ERROR --- [  restartedMain] ultUrlMappingEvaluator$UrlMappingBuilder : Mapping: 'projectId' does not start with / or is response code.
''2024-04-14 14:10:18.675 ERROR --- [  restartedMain] ultUrlMappingEvaluator$UrlMappingBuilder : Mapping: 'projectId' does not start with / or is response code.
''2024-04-14 14:10:18.706 ERROR --- [  restartedMain] ultUrlMappingEvaluator$UrlMappingBuilder : Mapping: 'projectId' does not start with / or is response code.
''2024-04-14 14:10:18.725 ERROR --- [  restartedMain] ultUrlMappingEvaluator$UrlMappingBuilder : Mapping: 'projectId' does not start with / or is response code.
''2024-04-14 14:10:18.766 ERROR --- [  restartedMain] ultUrlMappingEvaluator$UrlMappingBuilder : Mapping: 'projectId' does not start with / or is response code.
''2024-04-14 14:10:18.778 ERROR --- [  restartedMain] ultUrlMappingEvaluator$UrlMappingBuilder : Mapping: 'projectId' does not start with / or is response code.
''2024-04-14 14:10:18.789 ERROR --- [  restartedMain] ultUrlMappingEvaluator$UrlMappingBuilder : Mapping: 'projectId' does not start with / or is response code.
''2024-04-14 14:10:18.825 ERROR --- [  restartedMain] ultUrlMappingEvaluator$UrlMappingBuilder : Mapping: 'projectId' does not start with / or is response code.
''2024-04-14 14:10:18.850 ERROR --- [  restartedMain] ultUrlMappingEvaluator$UrlMappingBuilder : Mapping: 'projectId' does not start with / or is response code.
''2024-04-14 14:10:18.860 ERROR --- [  restartedMain] ultUrlMappingEvaluator$UrlMappingBuilder : Mapping: 'projectId' does not start with / or is response code.
''2024-04-14 14:10:18.868 ERROR --- [  restartedMain] ultUrlMappingEvaluator$UrlMappingBuilder : Mapping: 'projectId' does not start with / or is response code.
''2024-04-14 14:10:18.877 ERROR --- [  restartedMain] ultUrlMappingEvaluator$UrlMappingBuilder : Mapping: 'projectId' does not start with / or is response code.
''2024-04-14 14:10:18.918 ERROR --- [  restartedMain] ultUrlMappingEvaluator$UrlMappingBuilder : Mapping: 'projectId' does not start with / or is response code.
''2024-04-14 14:10:18.938 ERROR --- [  restartedMain] ultUrlMappingEvaluator$UrlMappingBuilder : Mapping: 'projectId' does not start with / or is response code.
''2024-04-14 14:10:18.994 ERROR --- [  restartedMain] ultUrlMappingEvaluator$UrlMappingBuilder : Mapping: 'projectId' does not start with / or is response code.
''2024-04-14 14:10:19.008 ERROR --- [  restartedMain] ultUrlMappingEvaluator$UrlMappingBuilder : Mapping: 'projectId' does not start with / or is response code.
''2024-04-14 14:10:19.024 ERROR --- [  restartedMain] ultUrlMappingEvaluator$UrlMappingBuilder : Mapping: 'projectId' does not start with / or is response code.
''2024-04-14 14:10:19.045 ERROR --- [  restartedMain] ultUrlMappingEvaluator$UrlMappingBuilder : Mapping: 'projectId' does not start with / or is response code.
''2024-04-14 14:10:19.064 ERROR --- [  restartedMain] ultUrlMappingEvaluator$UrlMappingBuilder : Mapping: 'projectId' does not start with / or is response code.
''2024-04-14 14:10:19.080  WARN --- [  restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatServletWebServerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/ServletWebServerFactoryConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'urlMappingsErrorPageCustomizer': Unsatisfied dependency expressed through field 'urlMappings'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'grails.web.mapping.UrlMappings' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsUrlMappingsHolder': Cannot resolve reference to bean 'urlMappingsTargetSource' while setting bean property 'targetSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlMappingsTargetSource': Cannot create inner bean '(inner bean)#3e406925' of type [org.grails.web.mapping.UrlMappingsHolderFactoryBean] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3e406925': Invocation of init method failed; nested exception is groovy.lang.MissingMethodException: No signature of method: grails.web.mapping.UrlMapping.projectId() is applicable for argument types: (LinkedHashMap) values: [[matches:\d+]]
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsUrlMappingsHolder': Cannot resolve reference to bean 'urlMappingsTargetSource' while setting bean property 'targetSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlMappingsTargetSource': Cannot create inner bean '(inner bean)#3e406925' of type [org.grails.web.mapping.UrlMappingsHolderFactoryBean] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3e406925': Invocation of init method failed; nested exception is groovy.lang.MissingMethodException: No signature of method: grails.web.mapping.UrlMapping.projectId() is applicable for argument types: (LinkedHashMap) values: [[matches:\d+]]
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsUrlMappingsHolder': Cannot resolve reference to bean 'urlMappingsTargetSource' while setting bean property 'targetSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlMappingsTargetSource': Cannot create inner bean '(inner bean)#3e406925' of type [org.grails.web.mapping.UrlMappingsHolderFactoryBean] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3e406925': Invocation of init method failed; nested exception is groovy.lang.MissingMethodException: No signature of method: grails.web.mapping.UrlMapping.projectId() is applicable for argument types: (LinkedHashMap) values: [[matches:\d+]]
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsUrlMappingsHolder': Cannot resolve reference to bean 'urlMappingsTargetSource' while setting bean property 'targetSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlMappingsTargetSource': Cannot create inner bean '(inner bean)#3e406925' of type [org.grails.web.mapping.UrlMappingsHolderFactoryBean] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3e406925': Invocation of init method failed; nested exception is groovy.lang.MissingMethodException: No signature of method: grails.web.mapping.UrlMapping.projectId() is applicable for argument types: (LinkedHashMap) values: [[matches:\d+]]
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsUrlMappingsHolder': Cannot resolve reference to bean 'urlMappingsTargetSource' while setting bean property 'targetSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlMappingsTargetSource': Cannot create inner bean '(inner bean)#3e406925' of type [org.grails.web.mapping.UrlMappingsHolderFactoryBean] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3e406925': Invocation of init method failed; nested exception is groovy.lang.MissingMethodException: No signature of method: grails.web.mapping.UrlMapping.projectId() is applicable for argument types: (LinkedHashMap) values: [[matches:\d+]]
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsUrlMappingsHolder': Cannot resolve reference to bean 'urlMappingsTargetSource' while setting bean property 'targetSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlMappingsTargetSource': Cannot create inner bean '(inner bean)#3e406925' of type [org.grails.web.mapping.UrlMappingsHolderFactoryBean] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3e406925': Invocation of init method failed; nested exception is groovy.lang.MissingMethodException: No signature of method: grails.web.mapping.UrlMapping.projectId() is applicable for argument types: (LinkedHashMap) values: [[matches:\d+]]
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsUrlMappingsHolder': Cannot resolve reference to bean 'urlMappingsTargetSource' while setting bean property 'targetSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlMappingsTargetSource': Cannot create inner bean '(inner bean)#3e406925' of type [org.grails.web.mapping.UrlMappingsHolderFactoryBean] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3e406925': Invocation of init method failed; nested exception is groovy.lang.MissingMethodException: No signature of method: grails.web.mapping.UrlMapping.projectId() is applicable for argument types: (LinkedHashMap) values: [[matches:\d+]]
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsUrlMappingsHolder': Cannot resolve reference to bean 'urlMappingsTargetSource' while setting bean property 'targetSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlMappingsTargetSource': Cannot create inner bean '(inner bean)#3e406925' of type [org.grails.web.mapping.UrlMappingsHolderFactoryBean] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3e406925': Invocation of init method failed; nested exception is groovy.lang.MissingMethodException: No signature of method: grails.web.mapping.UrlMapping.projectId() is applicable for argument types: (LinkedHashMap) values: [[matches:\d+]]
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsUrlMappingsHolder': Cannot resolve reference to bean 'urlMappingsTargetSource' while setting bean property 'targetSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlMappingsTargetSource': Cannot create inner bean '(inner bean)#3e406925' of type [org.grails.web.mapping.UrlMappingsHolderFactoryBean] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3e406925': Invocation of init method failed; nested exception is groovy.lang.MissingMethodException: No signature of method: grails.web.mapping.UrlMapping.projectId() is applicable for argument types: (LinkedHashMap) values: [[matches:\d+]]
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsUrlMappingsHolder': Cannot resolve reference to bean 'urlMappingsTargetSource' while setting bean property 'targetSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlMappingsTargetSource': Cannot create inner bean '(inner bean)#3e406925' of type [org.grails.web.mapping.UrlMappingsHolderFactoryBean] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3e406925': Invocation of init method failed; nested exception is groovy.lang.MissingMethodException: No signature of method: grails.web.mapping.UrlMapping.projectId() is applicable for argument types: (LinkedHashMap) values: [[matches:\d+]]
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsUrlMappingsHolder': Cannot resolve reference to bean 'urlMappingsTargetSource' while setting bean property 'targetSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlMappingsTargetSource': Cannot create inner bean '(inner bean)#3e406925' of type [org.grails.web.mapping.UrlMappingsHolderFactoryBean] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3e406925': Invocation of init method failed; nested exception is groovy.lang.MissingMethodException: No signature of method: grails.web.mapping.UrlMapping.projectId() is applicable for argument types: (LinkedHashMap) values: [[matches:\d+]]
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsUrlMappingsHolder': Cannot resolve reference to bean 'urlMappingsTargetSource' while setting bean property 'targetSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlMappingsTargetSource': Cannot create inner bean '(inner bean)#3e406925' of type [org.grails.web.mapping.UrlMappingsHolderFactoryBean] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3e406925': Invocation of init method failed; nested exception is groovy.lang.MissingMethodException: No signature of method: grails.web.mapping.UrlMapping.projectId() is applicable for argument types: (LinkedHashMap) values: [[matches:\d+]]
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsUrlMappingsHolder': Cannot resolve reference to bean 'urlMappingsTargetSource' while setting bean property 'targetSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlMappingsTargetSource': Cannot create inner bean '(inner bean)#3e406925' of type [org.grails.web.mapping.UrlMappingsHolderFactoryBean] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3e406925': Invocation of init method failed; nested exception is groovy.lang.MissingMethodException: No signature of method: grails.web.mapping.UrlMapping.projectId() is applicable for argument types: (LinkedHashMap) values: [[matches:\d+]]
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsUrlMappingsHolder': Cannot resolve reference to bean 'urlMappingsTargetSource' while setting bean property 'targetSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlMappingsTargetSource': Cannot create inner bean '(inner bean)#3e406925' of type [org.grails.web.mapping.UrlMappingsHolderFactoryBean] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3e406925': Invocation of init method failed; nested exception is groovy.lang.MissingMethodException: No signature of method: grails.web.mapping.UrlMapping.projectId() is applicable for argument types: (LinkedHashMap) values: [[matches:\d+]]
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsUrlMappingsHolder': Cannot resolve reference to bean 'urlMappingsTargetSource' while setting bean property 'targetSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlMappingsTargetSource': Cannot create inner bean '(inner bean)#3e406925' of type [org.grails.web.mapping.UrlMappingsHolderFactoryBean] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3e406925': Invocation of init method failed; nested exception is groovy.lang.MissingMethodException: No signature of method: grails.web.mapping.UrlMapping.projectId() is applicable for argument types: (LinkedHashMap) values: [[matches:\d+]]
'Disconnected from the target VM, address: '127.0.0.1:52482', transport: 'socket'
'2024-04-14 14:10:19.203 ERROR --- [  restartedMain] o.s.b.d.LoggingFailureAnalysisReporter   : 

在这种情况下我怎样才能找到问题出在哪里?

grails url-mapping
1个回答
0
投票

我瞎了!!! 显然,我定义的 URL 之一带有

projectId
的约束,但 URL 本身没有此参数。

© www.soinside.com 2019 - 2024. All rights reserved.