spring mvc(注解)上传文件的简单例子,这有几个需要注意的地方1.form的enctype=”multipart/form-data” 这个是上传文件必须的2.applicationContext.xml中 <bean id=”multipartResolver” class=”org.sp ...
分类:
编程语言 时间:
2016-08-12 00:53:10
阅读次数:
222
没有currentSession配置错误,即在我们使用currentSession的时候要在hibernate.cfg.xml中进行相关的事务配置:1、本地事务<property name="hibernate.current_session_context_class">thread</prope ...
分类:
数据库 时间:
2016-08-06 09:47:44
阅读次数:
171
If you're using JDBC-Jobstore, you will need a DataSource for its use. It is recommended that your DataSource max connection size be configured to be ...
分类:
其他好文 时间:
2016-08-06 08:28:51
阅读次数:
314
1.react native - expected a component class, got [object Object] 组件引用名称必须是首字母大写 譬如: 2.TextInput不显示 必须要设置TextInput的高度,默认是没有边框的 ...
分类:
其他好文 时间:
2016-08-04 17:32:09
阅读次数:
250
The HTTP protocol interceptor is a routine that implements a specific aspect of the HTTP protocol. Usually protocol interceptors are expected to act u ...
分类:
Web程序 时间:
2016-07-30 17:58:14
阅读次数:
150
在vmware里用ubuntu,报错 error: elf header smaller than expected ...
分类:
系统相关 时间:
2016-07-22 13:07:12
阅读次数:
1054
需要在配置文件里加上下面就ok了 <property name=”minEvictableIdleTimeMillis” value=”1800000″ /> <property name=”numTestsPerEvictionRun” value=”3″ /> <property name=”t ...
分类:
数据库 时间:
2016-07-20 19:39:38
阅读次数:
171
最近几天接了几个SqlAnywhere(ASA)数据库的修复,其中两个数据库都是报“Fileisshorterthanexpected--transactionrolledback”错误,如图:通过客户的描述,客户使用的是“珠宝首饰管理信息系统”,在使用中突然死机,强制重启后,软件无法连接数据库,且数据库启动报错。拿到..
分类:
数据库 时间:
2016-07-20 15:07:52
阅读次数:
481
Implement pow(x, n). Notice You don't need to care about the precision of your answer, it's acceptable if the expected answer and your answer 's diffe ...
分类:
其他好文 时间:
2016-07-18 02:31:51
阅读次数:
203
感叹:神一般的eclipse! 首先, 我这么写 extern "C" void func(){}; 代码爆红:(error: expected identifier or ‘(’ before string constant ) what the fuck!! 百度后是说c编译器不支持这种写法, ...
分类:
移动开发 时间:
2016-07-14 01:14:30
阅读次数:
235