自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(598)
  • 资源 (5)
  • 收藏
  • 关注

原创 搭个ssh环境搭了三天,终于搭好了(下)

1 dao文件夹下IImgDao.javapackage dao;import java.util.List;import bean.Img;public interface IImgDao { public boolean saveNewImg(Img img); public List findAll(); public Img findByImgId(I

2013-05-27 12:29:53 647

原创 搭个ssh环境搭了三天,终于搭好了(上)

1  将mysql-connecter-java.jar添加到lib路径下面2  添加spring,勾选前四个,和weblibraries,然后点击完成 3 添加hibernate4 添加struts(多勾选一个struts 2 spring libraries)5 web.xml<web-app version="2.5" x

2013-05-27 12:21:20 651

原创 hdoj 1039

#include #include#includeusing namespace std;#define MAX 30char password[MAX];int isVowel(char c){ if(c=='a'||c=='e'||c=='i'||c=='o'||c=='u') { return 1; } return 0;}

2014-06-08 14:16:06 780

原创 There is no statement named MmsSampleDataBean.getAllMmsSampleDataBySth

ibatis There is no statement named XXX in this SqlMap.实体映射文件未加入到sqlMap-Config.xml文件中。原因是:框架只读取sqlMap-Config.xml文件,对新建的sqlMap引入文件即使注入bean也不予理睬。将引入文件加入sqlMap-Config.xml就可以解决问题。 把用到xml文件加到sqlMap-Co

2013-12-03 16:36:46 753

原创 spring 注解装配

使用Spring2.5的Autowired实现注释型的IOC阅读(31) 评论(0) 发表时间:2009年01月16日 11:57 本文地址:http://qzone.qq.com/blog/55357655-1232078233 本文标签: Autowired context IOC xml beans    使用Spring2.5的新特性——Autowired可

2013-12-03 16:22:22 925

原创 linux 安装jre

刚才安装codeblocks没有安装成功,我在想是不是因为我没有使用su命令进入超级用户模式 1 Become root by running su and entering the super-user password. 2 Uninstall any earlier installations of the Java packages. rpm -e 3

2013-07-16 20:22:35 765

原创 vc的一些书

Visual C++ 2008 入门经典 (中文版) 下载Windows核心编程 第5版 (Windows via C/C++, 5th Edition)深入解析Windows操作系统 (第4版) 潘爱民译深入解析Windows操作系统 (第5版·英文版)Windows程序设计 (第五版) 英文版 | Windows程序设计 (第五版) 中文版深入浅

2013-07-12 13:25:50 758

原创 webbug 很诡异的bug

今天遇到一个很诡异的bug,bug的名称跟原因不是一回事,所以这里就不再写bug的名称记得看《亮剑》的时候,上面有句话“良将用病若良医用药,病万变,药亦万变”。亮剑上还有话就是:逢敌必亮剑 请选择二级分类所属的一级分类: ${firstScope.firstScopeName }

2013-07-09 17:06:45 725

原创 webbug rg.springframework.dao.DataIntegrityViolationException

rg.springframework.dao.DataIntegrityViolationException: not-null property references a null or transient value: entity.FirstScope.firstScopeName; nested exception is org.hibernate.PropertyValueExcepti

2013-07-08 16:58:41 987

原创 webbug 乱码问题(普通的过滤器只支持form 的method="post")

EncodingFilterpackage util;import java.io.IOException;import javax.servlet.Filter;import javax.servlet.FilterChain;import javax.servlet.FilterConfig;import javax.servlet.ServletException;impor

2013-07-08 10:51:06 608

原创 fmt标签

-- $12.00 -- $12.0 -- $1,234,567,890.00(那个货币的符号和当前web服务器的 local 设定有关) -- 123,456.79 -- 123,456.7 -- 123,456.70 -- 1,200%type 可以是currency、 number、 和percent -- 12.34

2013-07-05 15:54:44 634

原创 web legend标签,

健康信息 身高: 体重: 如果表单周围没有边框,说明您的浏览器太老了。

2013-07-05 15:32:34 1073

原创 webbug sql语法错误

今天我在看一些原来是sqlserver做数据库的程序。然后,我在hibernate.cfg.xml当中配置了mysql的相关信息。但是在执行的时候还是会出现错误。后来发现,在entity.hbm.xml当中,sqlserver的数据库一般会有一个dbo的数据项这个项删除以后。没有语法错了

2013-07-05 14:28:24 521

原创 webbug xerces.jar导致加载struts加载错误

主要原因好像是因为在hibernate当中导入了一个xerces.jar这个包,这个包跟jdk的包的功能相同导致冲突。于是struts无法启动。我删除xerces.jar以后无法将工程配置到服务器当中总是提示,工程可能被锁着。后来在网上查查以后才发现,原来是删除了上一个jar文件以后,但是在类路径中还有。在build java lib当中移除这个不存在的包就可以了。

2013-07-05 09:20:55 612

原创 marquee 会动的标签

基本语法 ... 啦啦啦,我会移动耶!啦啦啦,我会移动耶!文字移动属性的设置方向 #=left, right啦啦啦,我从右向左移! 啦啦啦,我从左向右移!啦啦啦,我从右向左移!啦啦啦,我从左向右移!方式 #=scroll, slide, alternate啦啦啦,我一圈一圈绕着走! 啦啦啦,我只走一次就歇了! 啦啦啦,我来回走耶!啦啦啦,我一圈

2013-07-04 16:38:44 666

原创 webbug 解决数据库乱码的问题

1 设置页面为utf-8, 这个在页面的头部设置。一般有两个属性,一个是页面的编码方式,一个是页面的字符集。两个都要设置好2 设置数据库为utf-8可以在安装的时候设置mysql为utf-8,也可以在mysql的配置文件当中设置编码方式为utf-8。show variables like 'charset% ';查看数据库的编码方式3 设置request的编码方式为utf-

2013-07-04 11:50:39 627

原创 js setTimeout而不是setTimerOut

<%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> My JSP 'index.jsp' startin

2013-07-03 20:23:45 987

原创 js 改变元素的位置

<%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> My JSP 'index.jsp' startin

2013-07-03 20:08:53 9049

原创 struts struts2 跳转类型 result type=chain、dispatcher、redirect(redirect-action)

struts2 跳转类型 result type=chain、dispatcher、redirect(redirect-action)dispatcher 为默认跳转类型,用于返回一个视图资源(如:jsp) Xml代码 :/main.jsp /main.jsp 以上写法使用了两个默认,其完整的写法为:          /maini.jsp 

2013-07-03 17:26:25 620

原创 webbug 编码字符集一直都是gbk

1 我在jsp页面但中设置编码方式,不行2 我创建了一个过滤器用来设置编码方式,不行3 我删除掉struts.xml还是不对4 于是我就删除了           -->让后编码方式变为utf-8了

2013-07-03 17:22:59 568

原创 bug Line: 209 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:209:-1

严重: Exception starting filter struts2Class: com.opensymphony.xwork2.spring.SpringObjectFactoryFile: SpringObjectFactory.javaMethod: getClassInstanceLine: 209 - com/opensymphony/xwork2/spring/S

2013-07-03 14:50:30 3291

原创 js 标签隔行显示颜色

<%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> My JSP 'index.jsp' startin

2013-07-03 10:43:58 683

原创 js 有美感的表格

<%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> My JSP 'index.jsp' startin

2013-07-03 10:32:45 682

原创 js 我学习过程中的毛病

我感觉我的性格有点急躁,学东西的时候,希望快速的入手。1 高中的时候,看到一个数学题,不是很明白,于是开始看答案,然后我就随意的浏览一下答案让后就过了,就认为自己理解了。这就好像看看电影就以为自己尽力了一样。2 acm和数学建模的时候,看看那些公式,不去推导,没有深入的了解就认为自己学会了。比如,以前看人工神经网络的时候,感觉自己理解了,可是后来自己写数字识别的时候才发现原来自己根本就没有

2013-07-02 14:24:22 558

原创 js <abbr><blockquote>两个标签

<%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> My JSP 'index.jsp' startin

2013-07-02 13:11:17 794

原创 js 如果js执行不出来,很可能是代码有问题

<%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> My JSP 'index.jsp' startin

2013-07-02 11:29:45 934

原创 js 创建一个新的node

<%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> My JSP 'index.jsp' startin

2013-07-02 10:44:56 632

原创 js 打开一个窗口

<%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> My JSP 'index2.jsp' starti

2013-07-01 18:13:27 539

原创 js 入门

<%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> My JSP 'index.jsp' startin

2013-07-01 17:59:21 455

原创 Error creating bean with name 'StuService' defined in ServletContext resource [/WEB-INF/applicationC

Error creating bean with name 'StuService' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'StuDAO' while setting bean property 'stuDAO'; n

2013-06-01 06:15:18 1650

原创 new poj 2362 搜索(今年比赛带的程序清单应该包含题目)(多个剪枝条件,)(大开眼界)(作复杂的题才会有进步)

/*输入一些木棍的长度,要构成一个正方形剪枝1 排序,从最大的开始bfs2 if(sum%4!=0||M<4) { printf("no\n"); continue; }3 设定每一次开始的位置 begin,注意,如果完成一条边的时候,开始从0开始4 中间一些

2013-05-10 00:14:33 590

原创 new 第四届BOBSLEDDING(不要被省赛的题目吓到,里面不一定有算法)

开始的时候我递交了3次都错误。让后我又读了一遍题,发现题意思是开始的时候速度为1,而不是我的程序中写的0让后就过了#include#include#includeusing namespace std;#define MAX 1010int N,L;int map[MAX];int first[MAX];int second[MAX];int third[MAX];

2013-05-09 00:28:37 574

原创 new 第三届 BUYING FEED (贪心)(当时被题目吓到了,还以为是搜索)

#include#include#include#define MAX 120using namespace std;int C;int K;int E;int N;class Store{public: int x;//位置 int f;//单价 int c;//容量};int com(const void *a,const void*b){

2013-05-08 11:41:31 589

原创 new 第五届,化学实验(吉林大学的map和vector可以打印)

看完了这个代码,发现,其实这个化学反应的过程并没有很复杂还是那种一个一个的方程式走,没有使用所谓的拓扑排序。map vector可以打印一下123456789101112131415161718192021222324252627282930313

2013-05-08 01:37:14 671

原创 new 第四届 走迷宫 (搜索,加二分搜索)(为了防止走回头路,添加一个flag[][]数组)

30            60first          last首先我们认为结果在这个范围之内,利用mid去测试如果mid可以,在30,mid之间否则                   在mid+1,60之间当first=last的时候,到最底层。#include#include#includeusing namespace std;int N;#

2013-05-07 22:27:46 587

原创 hdoj 2037 (贪心)(结构体排序)

#include #include#includeusing namespace std;#define MAX 120int N;class Movie{public: int start; int end;};int compare(const void *a,const void *b){ return ((Movie*)a)->end-((Mo

2013-05-07 19:39:03 534

原创 new 第四界substring (string操作和匹配)

#include #include#include#include#include#includeusing namespace std;int main(){ int T; scanf("%d",&T); while(T--) { string s1,s2,s3; cin>>s1;

2013-05-07 01:33:33 603

原创 new 第五届acm Divideing Jewels

第一次我采用从0开始搜索的策略,超时第二次我采用从15开始做的,没有超时#include#includeusing namespace std;#define MAX 11int map[MAX];#define MAXNUM 100009int dp[MAXNUM];int sum;int bfs(int level,int value){

2013-05-06 17:00:17 560

原创 new hdoj 1072(很经典的搜索)(费用需要慎重)

#include#include#includeusing namespace std;#define MAX 11int N,M,T;int map[MAX][MAX];int Left[MAX][MAX];int srow,scol;int erow,ecol;int mintime;int dir[4][2]={{1,0},{0,1},{-1,0},{0,-1}};c

2013-05-05 20:48:00 490

原创 new hdoj 1010(奇偶性剪枝)

先看剪枝的部分 //剪枝 int jian=T-time-abs(endcol-col)-abs(endrow-row); if(jian<0||jian&1) { return ; }第一次没有剪枝超时了,第二次剪枝但是没有进行奇偶性剪枝,也超时偶数-奇数=奇数奇数-奇数=偶数偶数-偶数=偶数#include#include#inc

2013-05-05 13:14:34 506

StrutsTutorial

StrutsTutorial文件。很简单的例子

2012-03-01

struts所用的jar文件

用于struts开发的留个jar文件commons-fileupload.jar,commons-logging.jar,freemarker.jar,ognl.jar,struts2-core.jar,xwork-core.jar

2012-02-29

java api中文版

这是用用于java开发,经常用的api文档,而且是中文的啊

2012-02-19

java邮件所需的jar

用于java邮件开发所需的jar,包含smtp.jar,mailapi.jar

2012-02-19

键盘钢琴软件

利用键盘来弹钢琴,副件中有乐谱,满足经济条件一般,但是喜欢钢琴的用户,不妨试一试

2012-01-03

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除