- 浏览: 24049 次
- 性别:
- 来自: 北京
最新评论
文章列表
ExecutorService abstraction has been around since Java 5. We are talking about 2004 here. Just a quick reminder: both Java 5 and 6 are no longer supported, Java 7won't be in half a year. The reason I'm bringing this up is that many Java programmers still don't fully understand how ExecutorService w ...
分三个点类总结下,希望对有相似问题的人有所帮助!
1,如何执行,如何用ProcessBuilder来简化操作
2,如果调用外部java服务,如何在销毁进程的同时关闭它开启的外部服务?
3,如何获得执行进程的PID?
1,如何执行, ...
把文件名中的'.'替换成'_'
并且去掉含有的空格
@echo off
setlocal enabledelayedexpansion
for %%j in (*.*) do (
set filename=%%~nj
set filename=!filename:.=_!
set filename=!filename: =!
if not "!filename!"=="%%~nj" ren "%%j" "!filename!%%~xj"
)
两个timezone对象,把第二个timezone对象的id和raw offset设置到第一个timezone对象里。
SimpleDateFormat simpleDateFormat = new SimpleDateFormat( "yyyy-MM-dd'T'HH:mm:ss 'UTC'Z" );
TimeZone defaultTimeZone = TimeZone.getDefault();
TimeZone timeZone = TimeZone.getTimeZone("");
...
OnLoadHeaderItem 加载的js 在整个页面被加载后执行。
add ( new Behavior() {
@Override
public void renderHead( Component component, IHeaderResponse response ) {
response.render( OnLoadHeaderItem.forScript("your java script") );
}
});
百说不如一例
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap 101 Template</title>
<!-- Bootstrap -->
<link href="bootstrap/2.2.2/css/bootstrap.min.css" rel="stylesheet" media="screen">
</head>
<body>
<div class=&quo ...
调查了很多资料,只有下面的这一种适合我
input,button,a {
outline:0 none !important;
}
!important 在这非常重要,提高级别,以防设置无效。