JAVA web开发历史
早期的Java Web应用中,Jsp文件同时负责生产网页,控制到下一个网页的流程,以及负责业务逻辑,
这给web开发带来一系列问题:
HTML和Java耦合在一起,JSP文件的编写者必须是网页设计者,又是Java开发者。
缺点:
可读性差
调试困难
不利于维护,更改业务逻辑或者数据可能设计多个相关网页
现在通常分为四层:
表述...
分类:
其他 时间:
2015-04-04 09:12:59
收藏:
0 评论:
0 赞:
0 阅读:
131
题目链接:restore-ip-addresses
import java.util.ArrayList;
import java.util.List;
/**
*
Given a string containing only digits,
restore it by returning all possible valid IP address combination...
分类:
其他 时间:
2015-04-04 09:12:49
收藏:
0 评论:
0 赞:
0 阅读:
514
随机增量法求最小圆覆盖~
(三倍经验题。。)...
分类:
其他 时间:
2015-04-04 09:12:39
收藏:
0 评论:
0 赞:
0 阅读:
236
C - A Simple Problem with Integers
Time Limit:5000MS Memory Limit:131072KB 64bit IO Format:%I64d & %I64u
Submit Status Practice POJ 3468
Description
You have N integers, A1, A2, ... , AN. You ...
分类:
其他 时间:
2015-04-04 09:12:29
收藏:
0 评论:
0 赞:
0 阅读:
260
Compromise
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 6750
Accepted: 3018
Special Judge
Description
In a few months the European Currency Union ...
分类:
其他 时间:
2015-04-04 09:12:19
收藏:
0 评论:
0 赞:
0 阅读:
198
单例模式的英文原文是:Ensure a class has only one instance, and provide a global point of access to it.意思是,确保一个类只有一个实例,并向整个系统提供这个实例。单例模式主要是确保只有一个实例存在。在java语言中有两种表现形式:
饿汉式单例:类加载时就进行实例化。
package com.zz.singleton...
分类:
其他 时间:
2015-04-04 09:12:09
收藏:
0 评论:
0 赞:
0 阅读:
264
Perfection
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 1912 Accepted Submission(s): 1141
Problem Description
From the article Nu...
分类:
其他 时间:
2015-04-04 09:11:59
收藏:
0 评论:
0 赞:
0 阅读:
275
Box of Bricks
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 5457 Accepted Submission(s): 2358
Problem Description
Little Bob likes...
分类:
其他 时间:
2015-04-04 09:11:29
收藏:
0 评论:
0 赞:
0 阅读:
283
Deck
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 1299 Accepted Submission(s): 749
Problem Description
A single playing card can ...
分类:
其他 时间:
2015-04-04 09:11:19
收藏:
0 评论:
0 赞:
0 阅读:
363
这篇博客,我们要详细讲解的是迭代器模式(Iterator Pattern),将要讲解的内容有:迭代器模式的定义,作用,详细设计分析等方面。...
分类:
其他 时间:
2015-04-04 09:11:09
收藏:
0 评论:
0 赞:
0 阅读:
350
1. CocoaPods简介CocoaPods是一个可以帮你集中管理第三方库的开源项目,运行在Ruby的环境下,基于GitHub托管优势,你可以很方便的查阅目前依赖于CocoaPods的资源.
并且CocoaPods是可靠,稳定,安全的.可以为你在使用第三方库资源时节省大部分的配置和部署时间.更专心的专注于编程!
CocoaPods项目的源码在Github上管理,经过多年发展,现在已经成为iOS...
分类:
其他 时间:
2015-04-04 09:10:59
收藏:
0 评论:
0 赞:
0 阅读:
304
1.题目描述:点击打开链接
2.解题思路:本题考查四分树的遍历。本题实质上是已知一棵四分树求黑色结点的编号;已知黑色结点的编号反过来构造四分树。第一种情况相当于编码,我们用先序遍历解决。用encode函数表示给整个四分树编码,如果发现内部既有0又有1出现,那么将其均分为四份,递归编码;反之则统计该结点的颜色以及路径。这里把路径编码成一个十进制数,便于转换。同理,如果已知了黑色结点,那么首先解码出...
分类:
其他 时间:
2015-04-04 09:10:49
收藏:
0 评论:
0 赞:
0 阅读:
448
Xiangqi
Problem Description
Xiangqi is one of the most popular two-player board games in China. The game represents a battle between two armies with the goal of capturing the enemy’s “genera...
分类:
其他 时间:
2015-04-04 09:10:48
收藏:
0 评论:
0 赞:
0 阅读:
285
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.
For example:
Given the following binary tree,
1...
分类:
其他 时间:
2015-04-04 09:10:29
收藏:
0 评论:
0 赞:
0 阅读:
171
需要测试的类Person:
package cn.edu.lstc.junit;
public class Person {
public void run() {
System.out.println("run...");
}
public void eat() {
System.out.println("eat...");
}
public String a() ...
分类:
其他 时间:
2015-04-04 09:09:39
收藏:
0 评论:
0 赞:
0 阅读:
616
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.
For example:
Given the following binary tree,
1...
分类:
其他 时间:
2015-04-04 09:09:09
收藏:
0 评论:
0 赞:
0 阅读:
243
背景Docker从一开始的概念阶段就致力于使用开源驱动的方式来发展,它的成功缘于国外成熟的开源文化氛围,以及可借鉴的社区运营经验。通过本文详细的介绍,让大家可以全面了解一个项目亦或者一项技术是如何通过开源的方式发展起来的。为了更准确的描述Docker的社区状况,请先看一份来自Docker官方的数据:...
分类:
其他 时间:
2015-04-04 09:06:29
收藏:
0 评论:
0 赞:
0 阅读:
274
部署CloudFoundry可能遇到的问题1. Bosh 报告 OpenStack API Request Entity Too Large error解决办法,修改/etc/nova/api-paste.conf文件,添加limits属性[python]view plaincopy[filter:...
分类:
其他 时间:
2015-04-04 09:06:08
收藏:
0 评论:
0 赞:
0 阅读:
372
1. 背景1.1. 由PaaS到Container2013年2月,前Gluster的CEO Ben Golub和dotCloud的CEO Solomon Hykes坐在一起聊天时,Solomon谈到想把dotCloud内部使用的Container容器技术单独拿出来开源,然后围绕这个技术开一家新公司提...
分类:
其他 时间:
2015-04-04 09:05:59
收藏:
0 评论:
0 赞:
0 阅读:
257
1. 背景敏捷开发已经流行了很长时间,如今有越来越多的企业开始践行敏捷开发所提倡的以人为中心、迭代、循序渐进的开发理念。在这样的场景下引入Docker技术,首要目的就是使用Docker提供的虚拟化方式,给开发团队建立一套可以复用的开发环境,让开发环境可以通过Image的形式分享给项目的所有开发成员,...
分类:
其他 时间:
2015-04-04 09:05:19
收藏:
0 评论:
0 赞:
0 阅读:
110