Skip to content

PathMatchingResourcePatternResolver is not able to resolve file in SpringBoot Packaged JAR #35617

@pawank94

Description

@pawank94

Referring to #34126.

@jhoeller, sorry for replying so late. But this issue is still not fixed. Changes done in

Iterator<String> entryIterator = jarFile.stream().map(JarEntry::getName).sorted().iterator();

still doesn't fix the problem that BOOT-INFO is part of prefix.

you can test this code by taking a spring-boot-maven-plugin generated JAR file and checking output of these commands in a debugger

StreamSupport.stream(Spliterators.spliteratorUnknownSize(jarFile.entries().asIterator(), 0), false ).collect(Collectors.toList())

and

jarFile.stream().map(JarEntry::getName).collect(Collectors.toList())

jarFile.stream() generated path had an extra BOOT-INFO/ prefix.

Can you please check this again? We will be prompt this time for any other question or validations.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions