Spring 3 @ImportResource with multiple files

前端 未结 4 1776
抹茶落季
抹茶落季 2020-12-08 15:17

I\'m trying to find the syntax for importing multiple spring xml context files using Spring 3 @ImportResource annotation.

I have tried using comma to separate the fi

4条回答
  •  自闭症患者
    2020-12-08 15:39

    You need to add the classpath before the file name

    @ImportResource(value = { 
        "classpath:file1.xml",
        "classpath:file2.xml"
        })
    

提交回复
热议问题