http://www.2cto.com/os/201309/243840.html
ivaneeo's blog自由的力量,自由的生活。 |
http://www.2cto.com/os/201309/243840.html
http://www.cnblogs.com/xiaoerlang/p/3345236.html
http://steven-wiki.readthedocs.org/en/latest/security/cas-tomcat/
http://wenku.baidu.com/view/13a57761783e0912a2162a94.html restful:http://jasig.github.io/cas/4.0.0/protocol/REST-Protocol.html http://jasig.275507.n4.nabble.com/Setting-up-the-RESTlet-servlet-on-CAS-3-3-5-td2068602.html http://blog.e-works.net.cn/626381/articles/526568.html
http://www.oecp.cn/hi/wlo_o/blog/2160 http://packetlife.net/blog/2011/apr/11/extracting-packets-large-captures/
http://stackoverflow.com/questions/18833931/how-to-use-the-muleclient-request-for-async-amqp-rabbitmq-implementation-from-ja?rq=1
http://www.mulesoft.org/documentation/display/current/Using+Spring+Beans+as+Flow+Components
System.out.println("debug:"+Base64.class.getProtectionDomain().getCodeSource().getLocation()); 設置默認時區。當然你可以這樣檢查一下:
//--- System.out.println(TimeZone.getDefault()); // 輸出當前默認時區
final TimeZone zone = TimeZone.getTimeZone("GMT+8"); // 獲取中國時區
TimeZone.setDefault(zone); // 設置時區
System.out.println(TimeZone.getDefault()); // 輸出驗證
//---
除了上面的解決方法外,還可以:
在 TOMCAT 的 JAVA 運行參數添加 -Duser.timezone=Asia/Shanghai 或者,如果有啟動的定時器或首次執行的代碼,可以使用語句
System.setProperty("user.timezone","Asia/Shanghai"); 來設置
但是為解決時區問題, 這樣編碼實在太煩, 所以你要知道如何從根本上解決問題: tomcat的catalina.sh: http://virtuallyhyper.com/2013/05/configure-haproxy-to-load-balance-sites-with-ssl/
|