-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileNotFoundException: ServletContext resource [/classpath*:dozer/*dozer.xml] cannot be resolved to URL because it does not exist #702
Comments
The line that is throwing the error, is a spring class: Not sure how its a dozer problem... |
We also have tests using classpath lookup, which dont fail: |
@zuihou ; if you still have this issue, please provide a github repo with a junit test showing the problem. |
I also have the problem.why |
@tryIdea ; as the comment above says, please provide a github repo with a junit test showing the issue. |
@garethahealy github repo: dozer-test |
@tryIdea ; i am unable to build your example. get the following error:
|
@garethahealy Code has been updated |
@garethahealy ServletContext resource cannot load "classpath*",the reson maybe the interface Resource of Resource[] mappingFiles,injected by springboot, now only support dozer.mappingFiles=classpath:dozer/global-configuration.xml,classpath:dozer/user-mapping.xml |
Hello @zuihou Did you find a solution please ? I am using spring boot as well Thank you |
dozer: |
@kazuki43zoo ; if you are able, can you have a look at this please |
I've investigated this behavior and I found that it occurred since Spring Boot 2.x (1.5.x work fine). I think this issue's cause belong the Spring Boot project. Hence I've created the spring-projects/spring-boot#15835. |
you can use this way to reduce it error
|
Springcloud projects start error reporting.
Whats your runtime?
Whats the
problem?
1, pom
2 application.yml,
3, mapping file :
Observed Results:
The text was updated successfully, but these errors were encountered: