Cheat Sheet - Http Client SSL TLS Configuration for Java, Kotlin and Scala with example http requests
The examples below use the base ssl configuration found here: SSLConfig of the library: SSLContext Kickstart
Java
/* | |
Copyright 2012-2021 Viktor Klang | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
The examples below use the base ssl configuration found here: SSLConfig of the library: SSLContext Kickstart
Java
This gist demonstrates configuring asynchronous logging with Logback in a Spring Boot application. This approach provides improved performance, reduced latency, scalability, and fault tolerance.
By leveraging existing Spring logging configuration properties, we can customize the logging behavior according to your application's requirements seamlessly based on the envirement variables declared in defaults.xml. See Custom log configuration
Important
Contrary to the default configuration, file logging (ASYNC_FILE) is enabled even if logging.file.name
or logging.file.path
are not used.
// I'd suggest you create an alias somewhere: | |
// alias uao=java --enable-preview --source 21 $HOME/bin/UAO.java | |
// RUN: uao $HOME/Downloads/demo.zip | |
import java.io.*; | |
import java.util.function.*; | |
import java.util.* ; | |
void main(String[] args) throws Exception { | |
var zipFile = new File(args[0]); |