分页器处理:
- 将数据操作移到 dao 层,包括:
int getTotalCount(DSLContext create, ...)
List<Record-Or-CustomItem> getList(DSLContext create, ..., limit, offset)- biz 层调用 dao,封装成 Pagination
| On openjdk-1.7.0_55 on ubuntu I am getting exception: | |
| com.sun.org.apache.xml.internal.serializer.utils.WrappedRuntimeException: Could not load the property file 'output_xml.properties' for output method 'xml' | |
| Can this be classpath issue? | |
| I can find "output_xml.properties" in /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/resources.jar. | |
| =============================================================== | |
| Try ensuring that your system is consistently using the same java version - sometimes these get out of sync. | |
| First do echo $java_HOME and verify that it points to /usr/lib/jvm/java-1.7.0-openjdk-amd64/. | |
| Now run sudo update-alternatives --config java and select the correct number for /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java |
| update-alternatives命令说明简介及用法 | |
| 1.功能作用 | |
| update-alternatives是dpkg的实用工具,用来维护系统命令的符号链接,以决定系统默认使用什么命令。 | |
| 在Debian系统中,我们可能会同时安装有很多功能类似的程序和可选配置,如Web浏览器程序(firefox,konqueror)、窗口管理器(wmaker、metacity)和鼠标的不同主题等。这样,用户在使用系统时就可进行选择,以满足自已的需求。 | |
| 但对于普通用户来说,在这些程序间进行选择配置会较困难。update-alternatives工具就是为了解决这个问题,帮助用户能方便地选择自已喜欢程序和配置系统功能 |
| # 删除所有的容器 | |
| docker rm `docker ps -qa` | |
| # 强制删除所有的容器 | |
| docker rm --force `docker ps -qa` |
| import java.util.*; | |
| public class Main { | |
| static class Validator { | |
| public boolean validate(Object value) { | |
| return true; | |
| } | |
| } |
分页器处理:
int getTotalCount(DSLContext create, ...)
List<Record-Or-CustomItem> getList(DSLContext create, ..., limit, offset)开发规范
层次分解:
com.xw.jsonrpc.intf.UserApi
com.xw.jsonrpc.impl.UserApiImpl
api 层构造 ScopeContext,调用 biz 层中的 Service, api 层自己要处理从对象到 json 的转换(如果缺省没实现的话)
| docker 放到独立的目录 | |
| #coderoot | |
| \pom.xml | |
| \src | |
| \main | |
| \test | |
| \docker <--- |
插件实体需要实现如下接口:
1、自动摘要(Summarize),包含指纹(WithFingerprint),Map映射(Mapper)
interface Summarize {
String getSummary();
}When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com, example2.com, and example1.com/images on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers