会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
code.world
CnBlogs
Home
New Post
Contact
Admin
Subscription
上一页
1
···
6
7
8
9
10
2016年5月15日
springmvc之hibernate整合
1、项目结构 2、所需jar包 3、web.xml 注:ContextLoaderListener作用:Spring之ContextLoaderListener的作用 4、applicationContext.xml,配置hibernate 5、spring-mvc.xml,springmvc配置文
Read More
posted @ 2016-05-15 21:27 code.world
Views(204)
Comments(0)
Diggs(0)
2016年5月14日
Java之properties文件读取
1、工程结构 2、ConfigFileTest.java 注:1、properties类详解见:Java中Properties类的操作、JAVA操作properties文件 2、getClass():取得当前对象所属的Class对象 getClassLoader():取得该Class对象的类装载器
Read More
posted @ 2016-05-14 00:02 code.world
Views(311)
Comments(0)
Diggs(0)
2016年5月11日
springmvc之定时器
一、通过注解方式实现定时器 1、工程结构 2、所需jar包 3、spring-config.xml,springmvc配置文件 注:下面是需要引入头路径: 下面是定时器开关配置: 4、web.xml,加载springmvc配置 5、TimerController.java 注:使用注解类前必须有@C
Read More
posted @ 2016-05-11 22:06 code.world
Views(7048)
Comments(0)
Diggs(0)
springMVC之国际化
1、工程结构 2、jar包 3、配置文件spring-config.xml,springMVC配置文件 4、spring-context.xml,浏览器国际化配置 5、web.xml,需要在这里配置对国际化的监听,加载国际化配置文件 6、index.jsp 7、message_zh_CN.prope
Read More
posted @ 2016-05-11 00:17 code.world
Views(1080)
Comments(0)
Diggs(0)
2016年5月9日
springmvc之log4j
1、工程结构 2、所需jar包 3、web.xml 4、spring-config.xml 5、log4j.properties 引用:springmvc 项目完整示例06 日志–log4j 参数详细解析 log4j如何配置 6、ProductsController.java 7、index.jsp
Read More
posted @ 2016-05-09 23:23 code.world
Views(1393)
Comments(1)
Diggs(0)
2016年5月7日
springMVC之配置
1、项目结构 2、所需jar包 3、web.xml文件 load-on-startup:表示启动容器时初始化该Servlet; url-pattern:表示哪些请求交给Spring Web MVC处理, “/” 是用来定义默认servlet映射的。也可以如“*.html”表示拦截所有以html为扩展
Read More
posted @ 2016-05-07 23:42 code.world
Views(329)
Comments(0)
Diggs(0)
2016年5月6日
compareTo(String str)与compareToIgnoreCase(String str)
一、compareTo(String str)方法 返回值:如果参数字符串等于此字符串,则返回值 0;如果此字符串按字典顺序小于字符串参数,则返回一个小于 0 的值;如果此字符串按字典顺序大于字符串参数,则返回一个大于 0 的值。 1、按字典顺序比较两个字符串 String str0 = "a";
Read More
posted @ 2016-05-06 23:40 code.world
Views(587)
Comments(0)
Diggs(0)
2016年4月20日
js中的json
1、什么是JSON? JSON 指的是 JavaScript 对象表示法(JavaScript Object Notation) JSON 是轻量级的文本数据交换格式 2、JSON语法是JavaScript对象表示法语法的子集 数据以“名称:值方”式存储(如:{"userName" : "John"
Read More
posted @ 2016-04-20 23:51 code.world
Views(352)
Comments(0)
Diggs(0)
2016年4月17日
Java转json
一、json介绍 1、 作用:JSON(JavaScript Object Notation) 是一种轻量级的数据交换格式,是存储和交换文本信息的语法。 2、json以key-value的格式书写,数据间以“,”分开,有两种数据结构: 对象:“{}”括起来的内容 数组:“[]”括起来的内容 如:{
Read More
posted @ 2016-04-17 21:52 code.world
Views(677)
Comments(0)
Diggs(0)
上一页
1
···
6
7
8
9
10
公告