ssh框架启动报 Unable to load configuration. ...struts-plugin.xml:8:59

范德海 范德海 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
麻痹的昨天发的帖子给我删了,垃圾论坛。。
web.xml配置文件:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<display-name></display-name>

<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

<!-- 配置Struts2 -->
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
<!-- 配置查找spring配置文件的位置 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
</web-app>


struts.xml配置文件:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"
"http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
<package name="default_package" extends="struts-default">
<action name="AdminAction!*" class="adminAction" method="{1}">
<result name="loginsuccess">/jsp/admin/default.jsp</result>
<result name="input">/jsp/admin/login.jsp</result>
</action>
</package>
</struts>


applicationContext.xml配置文件:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd">
<bean id="dataSource"
class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName"
value="com.mysql.jdbc.Driver">
</property>
<property name="url"
value="jdbc:mysql://127.0.0.1:3306/backstage">
</property>
<property name="username" value="root"></property>
<property name="password" value="1457259552"></property>
</bean>
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource"><ref bean="dataSource" /> </property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</prop>
</props>
</property>
<property name="mappingResources">
<list>
<value>com/jinshuo/entity/Admin.hbm.xml</value>
</list>
</property>
</bean>

<!-- 事务管理: -->
<!-- 事务管理器 -->
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
<!-- 开启注解事务 -->
<tx:annotation-driven transaction-manager="transactionManager"/>

<bean id="superDao" class="com.jinshuo.dao.impl.SuperDao">
<property name="sessionFactory"> <ref bean="sessionFactory" /></property>
</bean>
<bean id="adminDao" class="com.jinshuo.dao.impl.AdminDaoImpl">
<property name="sessionFactory"> <ref bean="sessionFactory" /></property>
</bean>
<bean id="adminservice" class="com.jinshuo.service.impl.AdminServiceImpl">
<property name="adminDao"> <ref bean="adminDao" /></property>
</bean>
<bean id="adminAction" class="com.jinshuo.action.AdminAction" >
<property name="adminService"> <ref bean="adminservice"></ref></property>
</bean>
</beans>



所使用的jar包
antlr-2.7.6.jar
aopalliance-1.0.jar
asm-3.3.jar
asm-commons-3.3.jar
asm-tree-3.3.jar
aspectjweaver-1.6.9.jar
cglib-2.2.jar
cglib-nodep-2.2.jar
commons-collections-3.1.jar
commons-collections-3.2.jar
commons-dbcp.jar
commons-fileupload-1.3.jar
commons-io-2.0.1.jar
commons-lang3-3.1.jar
commons-logging-1.1.1.jar
commons-pool-1.5.3.jar
dom4j-1.6.1.jar
ehcache-1.2.3.jar
ejb3-persistence.jar
freemarker-2.3.19.jar
hibernate-entitymanager.jar
hibernate-validator.jar
hibernate3.jar
javassist-3.9.0.GA.jar
jta-1.1.jar
log4j-1.2.14.jar
log4j-1.2.16.jar
mysql-connector-java-3.1.14-bin.jar
mysql-connector-java-5.1.30-bin.jar
ognl-3.0.6.jar
org.springframework.aop-3.1.1.RELEASE.jar
org.springframework.asm-3.1.1.RELEASE.jar
org.springframework.aspects-3.1.1.RELEASE.jar
org.springframework.beans-3.1.1.RELEASE.jar
org.springframework.context-3.1.1.RELEASE.jar
org.springframework.context.support-3.1.1.RELEASE.jar
org.springframework.core-3.1.1.RELEASE.jar
org.springframework.expression-3.1.1.RELEASE.jar
org.springframework.instrument-3.1.1.RELEASE.jar
org.springframework.instrument.tomcat-3.1.1.RELEASE.jar
org.springframework.jdbc-3.1.0.M1.jar
org.springframework.orm-3.0.5.RELEASE.jar
slf4j-api-1.5.8.jar
slf4j-log4j12-1.5.8.jar
spring-core-4.0.4.RELEASE.jar
spring-tx-3.2.9.RELEASE.jar
spring-web.jar
struts2-json-plugin-2.3.15.3.jar
struts2-junit-plugin-2.1.8.1.jar
struts2-spring-plugin-2.3.4.1.jar
xwork-core-2.3.15.3.jar
...全文

相关推荐

【自然语言处理】基于CRISPE与BROKE框架的提示词工程应用:大语言模型内容生成中的写作方法优化研究

内容概要:本文探讨提示词工程在人工智能内容生成中的关键作用,以CRISPE与BROKE两个提示词框架为例,分析其在角色设定、背景约束、验收标准和迭代机制上的异同,并通过撰写“AI与就业”科普短文的实际案例,展示提示词从模糊任务到可执行指令的构建过程。研究指出,提示词工程的核心不在于模板记忆,而在于提升意图的清晰度、约束的精确性、输出的可评测性以及对模型能力边界的认知。文章强调,有效的提示需明确角色、背景、任务、风格与验收标准,并通过多轮实验与迭代优化结果,避免生成内容陷入形式化与模板化。; 适合人群:具备一定AI基础知识、正在学习或使用大语言模型进行内容创作的学生、研究人员及内容创作者,尤其是关注写作质量与个性化表达的用户。; 使用场景及目标:①掌握如何将模糊写作意图转化为结构化提示词;②提升AI生成内容的信息密度、可读性与实用性;③在科研写作、科普传播等场景中保留个人思考痕迹,避免机械化表达;④学会通过可检查的验收标准持续优化输出。; 阅读建议:此资源不仅介绍提示词框架的操作方法,更强调思维训练。建议读者结合自身写作任务,动手实践CRISPE与BROKE的组合应用,重点关注约束设计与结果评测环节,并反思“为何提示无效”,从而真正实现从“会问”到“会写”的跃迁。

beiningya

技术转移机构自建平台与使用第三方SaaS系统相比,哪种投入产出比更好?.docx

科易网(厦门科易网科技有限公司)创立于2007年,是技术转移与科技创新数智化服务平台,拥有国家科技成果转化服务示范基地、国家技术转移示范机构等资质。平台以“AI+科技成果转化”为核心,整合成果、专利、专家、政策等多维数据,构建知识图谱与科创智能体,面向企业、政府、高校院所提供成果转化、技术需求对接、产业服务等数智化解决方案。截至目前,已服务全国企业超43万家,推动落地项目11800余项,总金额逾80亿元。

BIZKEEN

2026年中国重点行业企业研发投入强度与创新产出比的数据分布现状是怎样的?.docx

2026年中国重点行业企业研发投入强度与创新产出比的数据分布现状是怎样的?

BIZKEEN

YOLO26算法人识别+训练好的模型+1500张数据集+pyqt可视化界面-sts

页面底部可见数据集可视化效果示意。YOLO26算法人识别+训练好的模型+1500张数据集+pyqt可视化界面sts 账号出品:含完整标签文件与可视化效果截图。

stsdddd

Delphi 13.2控件之GExperts-RS13-1.4.0-2026-11-29.rar

Delphi 13.2控件之GExperts_RS13_1.4.0_2026-11-29.rar

tjsoft
评论 1
收藏 已收藏
分享
返回顶部
范德海
Java EE 67,535 成员 225,843 内容