Skip to content

Commit

Permalink
Polish WebUtilRuntimeHints
Browse files Browse the repository at this point in the history
  • Loading branch information
sdeleuze committed Sep 8, 2022
1 parent bfa803b commit d6c49ee
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import org.springframework.aot.hint.RuntimeHints;
import org.springframework.aot.hint.RuntimeHintsRegistrar;
import org.springframework.core.io.ClassPathResource;

/**
* {@link RuntimeHintsRegistrar} implementation that registers resource
Expand All @@ -30,6 +31,7 @@ class WebUtilRuntimeHints implements RuntimeHintsRegistrar {

@Override
public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
hints.resources().registerPattern("org/springframework/web/util/HtmlCharacterEntityReferences.properties");
hints.resources().registerResourceIfNecessary(
new ClassPathResource("HtmlCharacterEntityReferences.properties", getClass()));
}
}

0 comments on commit d6c49ee

Please sign in to comment.