gpt4 book ai didi

java - 在tomcat上运行maven项目

转载 作者:行者123 更新时间:2023-11-28 23:42:16 26 4
gpt4 key购买 nike

我正在使用 tomcat 7,当我运行我的 web 应用程序(maven 项目)时,它给了我这个错误:

Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:hr_demo-security-context.xml]

有人可以帮忙吗?提前致谢。

hr_demo-security-context.xml:

<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/security"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:lang="http://www.springframework.org/schema/lang"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">

</beans:beans>

最佳答案

hr_demo-security-context.xml 存在语法问题。

关于java - 在tomcat上运行maven项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18530632/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com