Spring context from within a jar file

前端 未结 4 1681
無奈伤痛
無奈伤痛 2021-02-05 17:01

I\'m developing a desktop application in java using spring and hibernate. I want to package it as a executable jar but I\'m having problems loading the context configuration XML

4条回答
  •  無奈伤痛
    2021-02-05 17:29

    Why not use ClasspathXmlApplicationContext and load them using the classpath relative path?

提交回复
热议问题