spring加载很久No Spring WebApplicationInitializer types detected on classpath No Transaction manager found你没有配置 Transaction 吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="dataSource" /> </bean> <!-- 使用annotation定义事务 --> <tx:annotation-driven transaction-manager="transactionManager" />有这个东西在咯 spring 文档没有加载到。 是 spring 的配置文件么? 但 我工程可以启动噢Spring WebApplicationInitializer 这个东西是做什么的》? 2014-04-30 11:43:29.756:INFO:oejs.Server:jetty-8.1.0.v201201272014-04-30 11:43:32.440:INFO:oejpw.PlusConfiguration:No Transaction manager found - if your webapp requires one, please configure one.2014-04-30 11:44:38.323:INFO:/:No Spring WebApplicationInitializer types detected on classpath2014-04-30 11:44:39.362:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/,file:/E:/workspace/guidance-code/guidance-admin/src/main/webapp/},file:/E:/workspace/guidance-code/guidance-admin/src/main/webapp/2014-04-30 11:44:39.362:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/,file:/E:/workspace/guidance-code/guidance-admin/src/main/webapp/},file:/E:/workspace/guidance-code/guidance-admin/src/main/webapp/2014-04-30 11:44:39.362:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/,file:/E:/workspace/guidance-code/guidance-admin/src/main/webapp/},file:/E:/workspace/guidance-code/guidance-admin/src/main/webapp/[INFO] Started Jetty Server2014-04-30 11:44:39.745:INFO:oejs.AbstractConnector:Started [email protected]:80我将 web.xml 所有配置的东西 屏蔽了, 但还是 要启动很久。。/:No Spring WebApplicationInitializer types detected on classpath和oejpw.PlusConfiguration:No Transaction manager found - if your webapp requires one, please configure one.这里 停留了 很久。 你好,请问你的这个问题解决了吗?我遇到了同样的问题No Spring WebApplicationInitializer types detected on classpath。如果解决了,求拉一把 你用的Spring版本是多少?从3.1.0开始在加载前就会先扫描,查找WebApplicationInitializer实现类。可以通过配置关闭这个功能:<web-app version="3.0" 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_3_0.xsd" metadata-complete="true"> 和楼主同样的问题,Spring 2.5,但是无论怎么在借鉴网上的办法,终究还是“No Spring WebApplicationInitializer types detected on classpath” 关于struts2找不到action Ext js tablpanel 中数据保存的时出现的问题? SQL 时间函数 double a =1 double b=a/0 这个会报错吗? NB人物啊 我们的webservice是不用发布的,我们的webservice没有wsdl文件 sybase数据导入到临时表的问题 如何用java编码打开本地文件 急需帮助,hibernate问题。 关于数据库连接池的问题 简直让我愤怒,解析xml时出现异常,直接找不到北了!诸位英雄,救命! 把A表的一批数据,平均分配给B表所选择的人员,并把B表所选人员的ID插入到A表中 SOS!快来救我!
<bean id="transactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource" />
</bean> <!-- 使用annotation定义事务 --> <tx:annotation-driven transaction-manager="transactionManager" />
有这个东西在咯
是 spring 的配置文件么?
Spring WebApplicationInitializer 这个东西是做什么的》?
2014-04-30 11:43:29.756:INFO:oejs.Server:jetty-8.1.0.v20120127
2014-04-30 11:43:32.440:INFO:oejpw.PlusConfiguration:No Transaction manager found - if your webapp requires one, please configure one.
2014-04-30 11:44:38.323:INFO:/:No Spring WebApplicationInitializer types detected on classpath
2014-04-30 11:44:39.362:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/,file:/E:/workspace/guidance-code/guidance-admin/src/main/webapp/},file:/E:/workspace/guidance-code/guidance-admin/src/main/webapp/
2014-04-30 11:44:39.362:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/,file:/E:/workspace/guidance-code/guidance-admin/src/main/webapp/},file:/E:/workspace/guidance-code/guidance-admin/src/main/webapp/
2014-04-30 11:44:39.362:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/,file:/E:/workspace/guidance-code/guidance-admin/src/main/webapp/},file:/E:/workspace/guidance-code/guidance-admin/src/main/webapp/
[INFO] Started Jetty Server
2014-04-30 11:44:39.745:INFO:oejs.AbstractConnector:Started [email protected]:80
我将 web.xml 所有配置的东西 屏蔽了, 但还是 要启动很久。。/:No Spring WebApplicationInitializer types detected on classpath和
oejpw.PlusConfiguration:No Transaction manager found - if your webapp requires one, please configure one.这里 停留了 很久。
<web-app version="3.0" 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_3_0.xsd"
metadata-complete="true">