File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
mybatis-spring-boot-autoconfigure/src/main/java/org/mybatis/spring/boot/autoconfigure Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 20
20
import java .net .URL ;
21
21
import java .net .URLDecoder ;
22
22
import java .nio .charset .Charset ;
23
+ import java .text .Normalizer ;
23
24
import java .util .List ;
24
25
import java .util .stream .Collectors ;
25
26
import java .util .stream .Stream ;
@@ -79,8 +80,9 @@ public static void setUrlDecodingCharset(Charset charset) {
79
80
private static String preserveSubpackageName (final String baseUrlString , final Resource resource ,
80
81
final String rootPath ) {
81
82
try {
82
- return rootPath + (rootPath .endsWith ("/" ) ? "" : "/" )
83
- + resource .getURL ().toString ().substring (baseUrlString .length ());
83
+ return rootPath + (rootPath .endsWith ("/" ) ? "" : "/" ) + Normalizer
84
+ .normalize (URLDecoder .decode (resource .getURL ().toString (), urlDecodingCharset .name ()), Normalizer .Form .NFC )
85
+ .substring (baseUrlString .length ());
84
86
} catch (IOException e ) {
85
87
throw new UncheckedIOException (e );
86
88
}
You can’t perform that action at this time.
0 commit comments