How To Enable SSL or HTTPS In Apache Tomcat 8

In this article we are going to see how to enable SSL in Apache Tomcat Server 8 and automatic redirect http to https. All we need is a Self-Signed-Certificate and do some configurations. There are many tools/utilities available to generate the certificate. We will be using KEYTOOL which comes along with JDK installation. Let us know few terminologies first. Self-Signed Certificate: A certificate that is signed by itself rather than a trusted authority. Generally used for testing purpose only. SSL (Secure Sockets Layer): A standard way of establishing an encrypted link between a web server and a browser. Ensures that Read More …

Share Knowledge

Method Reference in Java 8

In the place of an Anonymous class we can use Lambda expression but Sometimes, the lambda expression does nothing but call an existing method. In those cases, it’s often clearer to refer to the existing method by its name. Method references enable you to do this; A method reference is a shorthand syntax for a lambda expression that executes only One method. We can Use it if we need to declare fields or additional methods. Syntax :   Object :: methodName   Note: In the place of an Anonymous class we can use Lambda Expression, In the place of a Read More …

Share Knowledge

Enable HTTPS with Self-Signed-Certificate in Spring Boot 2.0.2

Self-Signed-Certificate code-adda

Hello Spring Boot enthusiasts, I am back again with another article. I hope you enjoyed my last article on different spring boot deployment strategies.  In today’s article, I will demonstrate how to enable SSL/HTTPS in embedded servlet container with a self-signed certificate and access spring boot application over HTTPS scheme. We will also see how to redirect any HTTP request to HTTPS. We will create self-signed certificate with the help of keytool which comes along with the JDK installation. Before getting into actual development, let us first understand basic terminologies which will help us further understanding this article. Self-Signed Certificate: A self Read More …

Share Knowledge

How to deploy spring boot war in jboss

In this article, we will see what are different strategies to deploy spring boot applications. Spring Boot lets you focus mainly on application development without worrying about some common configurations you used to do in spring. You don’t even need to bother about deployment part while in development stage, thanks to its Embedded servlet container that comes along with spring-boot-starter-web dependency. Isn’t this interesting? We will start by developing a simple spring boot web application and then see how to deploy spring boot war in JBOSS server and some other application servers. What you will learn?? Creating a simple Spring Read More …

Share Knowledge

Why Java 8 ?

With this new release, Java 8 is introducing a completely new JVM with full packed of some really exciting features at both the JVM and programming language level. There are literally dozens of new features that make java even better than previous versions and improvement about performance and optimized coding level with some functional programming features. These additions are under-the-hood improvements either at the compiler, JVM or help-system level. Lambda Expression and Virtual Extension Methods are the highlighting feature of Java 8 which is the implementation of Lambda expressions and supporting features to the Java programming language and platform. To Read More …

Share Knowledge