Code Monkey home page Code Monkey logo

repro-pathmatchingresourcepatternresolver's Introduction

repro-PathMatchingResourcePatternResolver

Related with https://jira.spring.io/browse/SPR-13685, https://jira.spring.io/browse/SPR-14934 and spring-projects/spring-boot#7449

Clone this project

$ git clone https://github.com/kazuki43zoo/repro-PathMatchingResourcePatternResolver.git

Build this project

$ cd repro-PathMatchingResourcePatternResolver/
$ ./mvnw package

Run this application

$ java -jar target/path-demo-0.0.1-SNAPSHOT.jar

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.4.2.RELEASE)

2016-11-22 22:59:41.057  INFO 22287 --- [           main] com.example.PathDemoApplication          : Starting PathDemoApplication v0.0.1-SNAPSHOT on xxxx with PID 22287 (/private/tmp/repro-PathMatchingResourcePatternResolver/target/path-demo-0.0.1-SNAPSHOT.jar started by xxxx in /private/tmp/repro-PathMatchingResourcePatternResolver)
2016-11-22 22:59:41.061  INFO 22287 --- [           main] com.example.PathDemoApplication          : No active profile set, falling back to default profiles: default
2016-11-22 22:59:41.115  INFO 22287 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@5b37e0d2: startup date [Tue Nov 22 22:59:41 JST 2016]; root of context hierarchy
------resources1---------
jar:file:/private/tmp/repro-PathMatchingResourcePatternResolver/target/path-demo-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes!/my/mappers/BarMapper.xml
jar:file:/private/tmp/repro-PathMatchingResourcePatternResolver/target/path-demo-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes!/my/mappers/FooMapper.xml
jar:file:/private/tmp/repro-PathMatchingResourcePatternResolver/target/path-demo-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes/my/mappers/BarMapper.xml
jar:file:/private/tmp/repro-PathMatchingResourcePatternResolver/target/path-demo-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes/my/mappers/FooMapper.xml
jar:file:target/path-demo-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes/my/mappers/BarMapper.xml
jar:file:target/path-demo-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes/my/mappers/FooMapper.xml
------resources2---------
jar:file:/private/tmp/repro-PathMatchingResourcePatternResolver/target/path-demo-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes!/my/mappers/BarMapper.xml
jar:file:/private/tmp/repro-PathMatchingResourcePatternResolver/target/path-demo-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes!/my/mappers/FooMapper.xml
------resources3---------
jar:file:/private/tmp/repro-PathMatchingResourcePatternResolver/target/path-demo-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes!/my/mappers/BarMapper.xml
jar:file:/private/tmp/repro-PathMatchingResourcePatternResolver/target/path-demo-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes!/my/mappers/FooMapper.xml
2016-11-22 22:59:42.048  INFO 22287 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
2016-11-22 22:59:42.060  INFO 22287 --- [           main] com.example.PathDemoApplication          : Started PathDemoApplication in 1.634 seconds (JVM running for 1.962)
2016-11-22 22:59:42.066  INFO 22287 --- [       Thread-1] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@5b37e0d2: startup date [Tue Nov 22 22:59:41 JST 2016]; root of context hierarchy
2016-11-22 22:59:42.067  INFO 22287 --- [       Thread-1] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans on shutdown

application.properties

my.app.test.resources1=classpath*:/**/mappers/*Mapper.xml
my.app.test.resources2=classpath*:/my/**/*Mapper.xml
my.app.test.resources3=classpath:/**/mappers/*Mapper.xml

Result using Spring Boot 1.3.8.RELEASE

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
-    <version>1.4.2.RELEASE</version>
+    <version>1.3.8.RELEASE</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>
$ ./mvnw -U clean package
$ java -jar target/path-demo-0.0.1-SNAPSHOT.jar

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.3.8.RELEASE)

2016-11-22 23:06:27.222  INFO 22453 --- [           main] com.example.PathDemoApplication          : Starting PathDemoApplication v0.0.1-SNAPSHOT on xxxx with PID 22453 (/private/tmp/repro-PathMatchingResourcePatternResolver/target/path-demo-0.0.1-SNAPSHOT.jar started by xxxx in /private/tmp/repro-PathMatchingResourcePatternResolver)
2016-11-22 23:06:27.224  INFO 22453 --- [           main] com.example.PathDemoApplication          : No active profile set, falling back to default profiles: default
2016-11-22 23:06:27.258  INFO 22453 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@5c29bfd: startup date [Tue Nov 22 23:06:27 JST 2016]; root of context hierarchy
------resources1---------
jar:file:/private/tmp/repro-PathMatchingResourcePatternResolver/target/path-demo-0.0.1-SNAPSHOT.jar!/my/mappers/BarMapper.xml
jar:file:/private/tmp/repro-PathMatchingResourcePatternResolver/target/path-demo-0.0.1-SNAPSHOT.jar!/my/mappers/FooMapper.xml
------resources2---------
jar:file:/private/tmp/repro-PathMatchingResourcePatternResolver/target/path-demo-0.0.1-SNAPSHOT.jar!/my/mappers/BarMapper.xml
jar:file:/private/tmp/repro-PathMatchingResourcePatternResolver/target/path-demo-0.0.1-SNAPSHOT.jar!/my/mappers/FooMapper.xml
------resources3---------
jar:file:/private/tmp/repro-PathMatchingResourcePatternResolver/target/path-demo-0.0.1-SNAPSHOT.jar!/my/mappers/BarMapper.xml
jar:file:/private/tmp/repro-PathMatchingResourcePatternResolver/target/path-demo-0.0.1-SNAPSHOT.jar!/my/mappers/FooMapper.xml
2016-11-22 23:06:27.952  INFO 22453 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
2016-11-22 23:06:27.961  INFO 22453 --- [           main] com.example.PathDemoApplication          : Started PathDemoApplication in 1.25 seconds (JVM running for 1.544)
2016-11-22 23:06:27.961  INFO 22453 --- [       Thread-1] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@5c29bfd: startup date [Tue Nov 22 23:06:27 JST 2016]; root of context hierarchy
2016-11-22 23:06:27.962  INFO 22453 --- [       Thread-1] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans on shutdown

repro-pathmatchingresourcepatternresolver's People

Contributors

kazuki43zoo avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.