03 2016 档案

摘要:如:在jsp中:提交信息,错误:以上就是错误现象:解决方法,加上springMVC的格式转换注解,相当于告诉spring这提交的内容的格式首先,要在springMVC的配置文件中有:然后,在javaBean文件中的date属性上添加日期的注解,并且写好格式:再提交数据,没问题。如果还有问题,注意是哪些属性的格式是需要转换的。==============================其中float... 阅读全文
posted @ 2016-03-31 14:40 奔跑吧_兄弟! 阅读(152) 评论(0) 推荐(0) 编辑
摘要:在idea总是可以设置自动转码的:勾选如图所示在编辑器中切换到Resuource bundle中去这个时候在下面输入中文,则自动转为native-to-ascii,因为已经透明了,所以在这里看不到,用txt打开源文件,则已经转换了来自为知笔记(Wiz) 阅读全文
posted @ 2016-03-31 12:21 奔跑吧_兄弟! 阅读(1405) 评论(0) 推荐(0) 编辑
摘要:首先,要删除需要把超链接的get方式变为post方式这个时候需要用到jquery去转换。但是,找个时候,不支持静态的操作。找个时候需要在配置文件中添加如下两个配置: 找个时候,使用js代码就有效了。 怎么转换为post?通过一个空的action的form来转发....通过js把删除的超链接转到这里的action上来。js代码:删除的方法,重定向到展示list的页面的action上去。来自为知... 阅读全文
posted @ 2016-03-30 18:46 奔跑吧_兄弟! 阅读(446) 评论(0) 推荐(0) 编辑
摘要:org.springframework.web.servlet.PageNotFound.handleHttpRequestMethodNotSupported Request method 'POST' not supportedRequest method 'POST' not supportedTomcat 8或者9下面的bug还是什么东西,需要加入如下解决方法: 需要在web.xml配... 阅读全文
posted @ 2016-03-30 18:45 奔跑吧_兄弟! 阅读(13495) 评论(0) 推荐(0) 编辑
摘要:在整合spring,springMVC,hibernate的时候,因为从webinf的文件夹下移除了springMVC的配置文件到src下,所以,idea从默认的位置找不到配置文件,需要在web.xml指定地址。原来的是: dispatcher org.springframework.web.servlet.DispatcherServlet ... 阅读全文
posted @ 2016-03-30 15:47 奔跑吧_兄弟! 阅读(565) 评论(0) 推荐(0) 编辑
摘要:org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread原因不详:解决方法:一是在web.xml添加: hibernateFilter org.springframework.orm.hibernate5.support.O... 阅读全文
posted @ 2016-03-26 02:00 奔跑吧_兄弟! 阅读(4651) 评论(0) 推荐(0) 编辑
摘要:问题:已经导入好jar包了....再打开structure看看,这里没有json的配置文件,再点击添加看看:第三个,添加吧!!!黄色走起...来自为知笔记(Wiz) 阅读全文
posted @ 2016-03-25 20:23 奔跑吧_兄弟! 阅读(668) 评论(0) 推荐(0) 编辑
摘要:1234Unable to load configuration. - bean - jar:file:/F:/Documents/MyJava/SSH002/out/artifacts/SSH002_war_exploded/WEB-INF/lib/struts2-core-2.3.28.jar!/struts-default.xml:63:72 Caused by: Unable to lo... 阅读全文
posted @ 2016-03-23 14:34 奔跑吧_兄弟! 阅读(571) 评论(0) 推荐(0) 编辑
摘要:Unable to load configuration. - bean - jar:file:/F:/Documents/MyJava/Spring114/out/artifacts/Spring114_war_exploded/WEB-INF/lib/struts2-spring-plugin-2.3.24.1.jar!/struts-plugin.xml:29:132Caused by: U... 阅读全文
posted @ 2016-03-22 01:43 奔跑吧_兄弟! 阅读(1409) 评论(0) 推荐(0) 编辑
摘要:Struts has detected an unhandled exception: Messages: •Could not obtain transaction-synchronized Session for current thread File: org/springframework/orm/hibernate5/SpringSessionContext.java Line numb... 阅读全文
posted @ 2016-03-21 17:20 奔跑吧_兄弟! 阅读(2738) 评论(0) 推荐(0) 编辑
摘要:1.idea创建项目:很方便,在下面添加各自的jar包,注意点:hibernate和struts2都有一个javassiste的jar包,把低级的删掉即可,因为有两个的时候,会有转换异常 idea会帮你配置好基本的信息。jar包一览: 2.首先,在大佬web.xml配置好加载各小弟的配置信息:idea帮忙生成的123456789101112131415161718192021222... 阅读全文
posted @ 2016-03-20 18:09 奔跑吧_兄弟! 阅读(9110) 评论(1) 推荐(1) 编辑
摘要:当处理如下代码:12Javassist Enhancement failed: com.entities.Departmentjava.lang.ClassCastException: com.entities.Department_$$_javassist_1 cannot be cast to javassist.util.proxy.Proxy 123 当输... 阅读全文
posted @ 2016-03-20 15:14 奔跑吧_兄弟! 阅读(6188) 评论(1) 推荐(1) 编辑
摘要:org.apache.struts2.dispatcher.Dispatcher.error Dispatcher initialization failed Unable to load configuration. - action - file:/F:/Documents/MyJava/SSH001/out/artifacts/SSH001_war_exploded/WEB-INF/clas... 阅读全文
posted @ 2016-03-20 14:49 奔跑吧_兄弟! 阅读(792) 评论(0) 推荐(0) 编辑
摘要:jar包:基本的文件框架:1.首先配置jdbc的连接数据,也就是db.properties此处注意在url上,这里不是xml文件,不需要加上amp。用一个问号就可以 1234user=rootpassword=driverClass=com.mysql.jdbc.Driverurl=jdbc:mysql://localhost:3306/spring001?useUnicode=true&char... 阅读全文
posted @ 2016-03-20 01:07 奔跑吧_兄弟! 阅读(166) 评论(0) 推荐(0) 编辑
摘要:jar包:基本的文件框架:1.首先配置jdbc的连接数据,也就是db.properties此处注意在url上,这里不是xml文件,不需要加上amp。用一个问号就可以 1234user=rootpassword=driverClass=com.mysql.jdbc.Driverurl=jdbc:mysql://localhost:3306/spring001?useUnicode=true&char... 阅读全文
posted @ 2016-03-20 01:07 奔跑吧_兄弟! 阅读(823) 评论(0) 推荐(0) 编辑
摘要:1.创建新的项目,打勾如下,选择好tomcat之类,然后jar包是自己弄好的了,也可以自动下载...... idea自动生成了默认的web.xml,这里不管它了 idea也自动创建了index.jsp的首页.....写上基本的信息吧: idea还创建了action管理器struts.xml 接着index.jsp的页面,我们创建下一个页面的jsp文件,放在pages下:input.jsp... 阅读全文
posted @ 2016-03-15 15:06 奔跑吧_兄弟! 阅读(12851) 评论(0) 推荐(0) 编辑
摘要:Exception in thread "main" java.sql.SQLException: Connections could not be acquired from the underlying database! Caused by: com.mchange.v2.resource... 阅读全文
posted @ 2016-03-13 12:07 奔跑吧_兄弟! 阅读(2227) 评论(0) 推荐(0) 编辑
摘要:例如: BasicNetwork.performRequest: Unexpected response code 404 for http://geci.me/api/lyric/喜欢你 在volley中,如果网址中有中文,程序中转化不了,则出现此错误。 同样的网址,应该通过方法... 阅读全文
posted @ 2016-03-01 19:06 奔跑吧_兄弟! 阅读(727) 评论(0) 推荐(0) 编辑
摘要:哎,敢接触这个东西,看了好些东西,才明白,其中,借鉴如下这位网友:http://www.cnblogs.com/wenjiang/archive/2013/05/06/3063259.html?utm_source=tuicool 但还是看得很难懂:后来终于搞明白了,特简单易懂地写下来。 首... 阅读全文
posted @ 2016-03-01 02:53 奔跑吧_兄弟! 阅读(538) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示