Get multiple Resources that match the pattern in spring

For example, to get `` `Resource``` of all xml files directly under the classpath, do as follows.

PathMatchingResourcePatternResolver resolover = new PathMatchingResourcePatternResolver();
Resource[] resources = resolover.getResources("classpath:*.xml");

for (Resource resource : resources) {
  System.out.println(resource);
}

Recommended Posts

Get multiple Resources that match the pattern in spring
Get cookies in Spring
Specify the encoding of static resources in Spring Boot
Determine that the value is a multiple of 〇 in Ruby
Sample web application that handles multiple databases in Spring Boot 1.5
Sample code that uses the Mustache template engine in Spring Boot
Get a proxy instance of the component itself in Spring Boot
Form that receives the value of the repeating item in Spring MVC
How to get the setting value (property value) from the database in Spring Framework
[Java] Implement a function that uses a class implemented in the Builder pattern
Get the result of POST in Java
Spring Autowired is written in the constructor
How to get the date in java
Sort by multiple fields in the class
Get the path defined in Controller class of Spring boot as a list
I want to get the information of the class that inherits the UserDetails class of the user who is logged in with Spring Boot.
When you get lost in the class name
Put multiple Main classes in one Spring Project
Map GET requests to complex objects in Spring.
[Java] Read the file in src / main / resources
Get your version number in the Android app
How to define multiple orm.xml in Spring4, JPA2.1
View the Gradle task in the Spring Boot project
I want to get the value in Ruby
The story that the port can no longer be used in the Spring boot sample program
Install multiple submit buttons in Rails View to get the value of the pressed button