This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background: #fff; | |
color: #333; | |
font-size: 11px; | |
height: auto; | |
padding-top:60px; | |
} | |
.container_16{ | |
width: 960px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String dt = "2008-01-01"; // Start date | |
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); | |
Calendar c = Calendar.getInstance(); | |
c.setTime(sdf.parse(dt)); | |
c.add(Calendar.DATE, 1); // number of days to add | |
dt = sdf.format(c.getTime()); // dt is now the new date |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final HttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactory(); | |
SSLContextBuilder builder = new SSLContextBuilder(); | |
builder.loadTrustMaterial(null, new TrustSelfSignedStrategy()); | |
SSLConnectionSocketFactory sslsf = new SSLConnectionSocketFactory(builder.build()); | |
CloseableHttpClient httpclient = HttpClients.custom().setSSLSocketFactory(sslsf).build(); | |
requestFactory.setHttpClient(httpclient); | |
RestTemplate template = new RestTemplate(requestFactory); |