Spring @ImportResource

We can import XML configurations with @ImportResource annotation.
We can specify the XML file locations with the locations argument, or with its alias, the value argument:

@Configuration
@ImportResource("classpath:/annotations.xml")
class VehicleFactoryConfig {}

你可能感兴趣的:(框架,spring,java,前端)