自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

原创 时间上面的转换

   仿照微信朋友圈实现几分钟前,几天前package utils;import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Date;public class FriendlyTime { public static void main(Strin...

2017-05-04 09:55:09 110

原创 用户和帖子的绑定

在帖子的实体类中// private int uid;private User user;public void setUser(User user) { this.user = user;}public User getUser() { return user;}在dao层里面的方法@Override public List<Forum&g...

2017-05-04 09:28:30 157

原创 分页的封装与使用(2)

根据页码来跳转<select id="selectPage" name="selectPage" onchange="goPage();"> <% for (int i = 1; i <= spage.getTotalPage(); ++i) { ...

2017-05-04 09:21:25 126

原创 分页的封装与使用(1)

<div class="iteye-blog-content-contain" style="font-size: 14px"></div>1:分页要维护的信息很多,我们把这些相关的信息,分装到一个类中,PageViewimport java.util.List;/** * 封装分页的参数 * * * */public ...

2017-05-04 09:05:22 307

原创 javascript

1:验证电话号码:     (1)匹配国际号码的模式:(\+\d{1,3} ?)? eg: +123 , +1212       (2)匹配区号的模式:(\(\d{1,5}\)|\d{1,5})) \ 具有转意的作用       (3)匹配用户号码?\d{3,4} ?\d{0,7} ?前面有空格       (4)可选的分机号码( (x|xtn|ext|e...

2017-04-07 12:59:56 96

原创 ssh

1:web.xml<?xml version="1.0" encoding="UTF-8"?><web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocati

2017-04-06 00:06:14 130

原创 ssh

(1)使用DelegatingRequestProcessor在struts-config.xml中: <controller processorClass="org.springframework.web.struts.DelegatingRequestProcessor"/> 完成这个配置后,struts会将拦截到的用户请求转发到Spring context下的B...

2017-04-05 23:04:21 115

原创 jsp+struts

首先编写一个日志配置文件log4j.properties: log4j.rootLogger=ERROR,A1,R log4j将要输出的log信息定义了五个级别:debug,info,warn,error,fatal ,当输出时,只有级别高于配置中规定的级别信息才能真正的输出。log4j.appender.A1=org.apache.log4j.ConsoleAppender...

2017-04-03 18:46:08 192

原创 jsp+struts(配置文件)

服务器中加载web.xml文件的相关内容:<servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> ...

2017-04-03 18:09:28 276

原创 jsp+servlet

try{ conn = ConnectionFactory.getConnction(); state = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE); rs = state.executeQuery(sql); while(rs.next())...

2017-03-31 13:12:43 121

原创 jsp+servlet

[size=medium]获得 .properties配置资源的方法public void getpoperties(){ Properties prop = new Properties(); InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("db.proope...

2017-03-31 12:55:09 113

空空如也

空空如也

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

TA关注的人

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