Skip to content

Commit

Permalink
Refine GrailsResourceBanner
Browse files Browse the repository at this point in the history
Support Spring Boot 3
  • Loading branch information
rainboyan committed Apr 27, 2023
1 parent f9feb1c commit 798090c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021-2022 the original author or authors.
* Copyright 2021-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -15,6 +15,7 @@
*/
package grails.boot;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -46,7 +47,7 @@ public GrailsResourceBanner(Resource resource) {

@Override
protected List<PropertyResolver> getPropertyResolvers(Environment environment, Class<?> sourceClass) {
List<PropertyResolver> resolvers = super.getPropertyResolvers(environment, sourceClass);
List<PropertyResolver> resolvers = new ArrayList<>(super.getPropertyResolvers(environment, sourceClass));
resolvers.add(getGrailsVersionResolver(sourceClass));
return resolvers;
}
Expand Down

0 comments on commit 798090c

Please sign in to comment.