感觉不用jdbc.properties配置文件好一点,直接将value值改成驱动包,用户密码,地址这些更不容易出错
2017-04-07
出现这个错:there is no Action mapped for namespace[/] and action name [product_save] associated with context path[/ssh]不要急,分布检查:
1.检查,struts.xml配置,name 和class是否正确
2.检查action类,save()方法是否写对,(save()是没有参数的,我就错在这)
1.检查,struts.xml配置,name 和class是否正确
2.检查action类,save()方法是否写对,(save()是没有参数的,我就错在这)
2017-04-06
http://download.csdn.net/download/luoyoub/5266525 源码下载 感谢这位博主的提供
2017-04-06
真的感觉时不时建议别人放弃的那人脑子有毛病,java学习本来学习过程就是痛苦的,在一起这里学到同学就应该互相鼓励,共同进步,时不时·说放弃,只能说是java学习的一大毒瘤,
2017-04-05
我的jar包都是引用的,各种RuntimeException,404,500 错误,把jar包手动添加到lib下面可以正常加载。
2017-04-01
<struts>
<package name="ssh" extends="struts-default" namespace="/">
<!-- 这里name和jsp中的action相对应 ,用struts配置-->
<action name="product_*" class="productAction" method="{1}">
</action>
</package>
</struts>
<package name="ssh" extends="struts-default" namespace="/">
<!-- 这里name和jsp中的action相对应 ,用struts配置-->
<action name="product_*" class="productAction" method="{1}">
</action>
</package>
</struts>
2017-03-28
ERROR [localhost-startStop-1] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'productService' defined in class path resource [applicationContext.xml]: Initialization of bean failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'productService' defined in class path resource [applicationContext.xml]: Initialization of bean failed
2017-03-26
自学这个ssh,从开始学到这花了一天时间,是不是速度贼慢,主要现在还出现空指针异常
2017-03-22