maven: 建表语句: spring配置: 增、删、改、查接口代码就不贴了。 测试类: ...
分类:
数据库 时间:
2017-04-18 09:55:45
阅读次数:
280
spring mvc(注解)上传文件的简单例子,这有几个需要注意的地方 1.form的enctype=”multipart/form-data” 这个是上传文件必须的 2.applicationContext.xml中 <bean id=”multipartResolver” class=”org. ...
分类:
编程语言 时间:
2017-04-16 16:59:15
阅读次数:
184
Hibernate版本5.2.9 获取Session的方式是sessionFactory.getCurrentSession(); 比较老一些的版本使用的是sessionFactory.openSession()是不管任何情况都重新开启一个Session。 从两者却别来说getCurrentSess ...
分类:
Web程序 时间:
2017-04-15 14:52:33
阅读次数:
250
FastMM 定位内存泄露的代码位置 开源的FastMM,使用很简单,在工程的第一行引用FastMM4即可(注意,一定要在第一个Uses的位置),可以在调试程序时提示内存泄露情况,还可以生成报告。 在Delphi2007以后版本中,使用更加简单,只需要在工程开始的位置加上语句: ReportMemo ...
在定义全局颜色宏的时候,为了整齐把空格删了,写在了同一行里,调用的时候,出错提示“Expected identifier”,如下: 如果宏定义如上那样的话,在调用的时候,会出现如下的问题: 百思不得解,而正确的定义颜色宏的格式如下: 代码如下: ...
分类:
其他好文 时间:
2017-04-14 11:50:58
阅读次数:
190
今天把项目代码上传到svn后出现例如以下错误:The declared package "com.dao" does not match the expected package "src.com.dao" 解决方式是:选中项目右击选择 Build Path --> 选择 Configure Bui ...
分类:
其他好文 时间:
2017-04-14 09:43:23
阅读次数:
396
项目执行删除Redis缓存时发生错误,错误信息如下: (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may ...
分类:
数据库 时间:
2017-04-09 09:42:11
阅读次数:
239
<input type="file" id="file" name="file"> spring中的配置: <!-- 上传附件 --> <bean id="multipartResolver" class="org.springframework.web.multipart.commons.Comm ...
分类:
编程语言 时间:
2017-04-06 19:57:50
阅读次数:
710
Java Error Handling with Exceptions The basic philosophy of Java is that “badly formed code will not be run.” The ideal time to catch an error is at c ...
分类:
编程语言 时间:
2017-04-05 09:26:41
阅读次数:
230