xception in thread “main” org.hibernate.exception.GenericJDBCException: could not execute statement
at org.hibernate.exception.internal.StandardSQLExceptionConverter.co……继续阅读 »
9年前 (2016-05-14) 2365浏览
0个赞
测试的代码:
import static org.junit.Assert.*;
import javax.annotation.Resource;
import org.apache.log4j.Logger;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.R……继续阅读 »
9年前 (2016-05-14) 1227浏览
0个赞
一个长条形的进度条 progressBar 从2头往中间的一个点跑。同时跑到。两边的颜色不一样。求高手解答。
解决方案
50
你可以看下progressBar 的背景颜色更改,或自定义progressBar
50
通过系统progressbar来实现你说的功能可能有些麻烦,本人建议你自定义一个view,然后ondraw里从两头绘制背景颜色,这样简单一些。……继续阅读 »
9年前 (2016-05-14) 1356浏览
0个赞
图片上传到服务器怎么样保存进MySQL数据库呢?是以二进制数据的形式保存的吗?有没有很好的例子,例如注册时添加头像上传到服务器,登陆之后可以从服务器中读出头像。
请大家指点!
解决方案
6
考虑存到文件服务器上吧
17
保存图片地址到数据库啊
9
坑定是服务器上的图片地址啦
3
http://img4.imgtn.bdimg.com/it/u=8192……继续阅读 »
9年前 (2016-05-14) 971浏览
0个赞
解决方案
30
很明确的提示你,see log
25
这个问题产生原因可能很多,建议看下Log,或把部分Log贴上来分析
……继续阅读 »
9年前 (2016-05-14) 1905浏览
0个赞
private static final Object WAIT_SYNC = new Object();
…
synchronized (WAIT_SYNC) {
try {
WAIT_SYNC.wait();
} catch (InterruptedException ex) {
throw new KeyPromptingInterrupt……继续阅读 »
9年前 (2016-05-14) 1078浏览
0个赞
http://poj.org/problem?id=2488
这是地址 、、 是个英文题目
Description
Background
The knight is getting bored of seeing the same black and white squares again and again and has decided to make ……继续阅读 »
9年前 (2016-05-14) 1396浏览
0个赞
同一个文件用php读取,却是正常的,怎么破?
解决方案
20
截个图来看!
20
恩。你再研究研究,记得结贴给分
……继续阅读 »
9年前 (2016-05-14) 1252浏览
0个赞
本人做的一个“系统消息提示”,用的一个长轮循实现。单独的一个SqlConnection,其它的功能又用的另一个SqlConnettion
系统的使用人数大致在60-100左右。
现在的情况的是:有时用着用着,系统会提示出错。多刷新几次,就又正常了。
出错的原因是:提示得很乱,本人初步判断是原因是轮循的链接,同时触发太多,影响了正常功能应用的链接。
sql操作……继续阅读 »
9年前 (2016-05-14) 1098浏览
0个赞