jdaugherty commented on code in PR #15541:
URL: https://github.com/apache/grails-core/pull/15541#discussion_r3042554867


##########
grails-url-mappings/src/main/groovy/org/grails/plugins/web/mapping/UrlMappingsAutoConfiguration.java:
##########
@@ -82,10 +80,9 @@ public GrailsCorsFilter 
grailsCorsFilter(GrailsCorsConfiguration grailsCorsConfi
     }
 
     @Bean
-    public UrlMappingsErrorPageCustomizer 
urlMappingsErrorPageCustomizer(ObjectProvider<UrlMappings> urlMappingsProvider) 
{
-        UrlMappingsErrorPageCustomizer errorPageCustomizer = new 
UrlMappingsErrorPageCustomizer();
-        
errorPageCustomizer.setUrlMappings(urlMappingsProvider.getIfAvailable());
-        return errorPageCustomizer;
+    @ConditionalOnMissingBean
+    public UrlMappingsErrorPageCustomizer urlMappingsErrorPageCustomizer() {

Review Comment:
   Per discussion, I've reverted this for now.  Let's wait and see the fallout.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to