1
回答
用fat jar打包后 spring配置出错 打包前没问题 求教
【腾讯云】学生服务器套餐10元/月 >>>   

用fat jar打包项目后报错如下:

Exception in thread "main" org.springframework.beans.factory.parsing.BeanDefinit
ionParsingException: Configuration problem: Unable to locate Spring NamespaceHan
dler for XML schema namespace [http://www.springframework.org/schema/context]
Offending resource: class path resource [spring-jdbc.xml]



main函数:

public class Test {
	public static void main(String[] args) {
		ApplicationContext ac = new ClassPathXmlApplicationContext(new String[]
				{"spring-jdbc.xml","pyc-spring-quartz.xml","spring-mvc.xml"});
	}
}



求教这是怎么回事呀

举报
顶部