In this tutorial, we will show you how to use Maven to manage a Java project – create, add dependencies and package a Java project into an executable jar file. At the end, we will create an executable jar file to hash a given string with the SHA-256 algorithm. Technologies used : Maven 3.5.3, JDK 8, Apache Commons Codec 1.11
In this tutorial, we will show you how to use Maven to manage a Java web project. At the end, we will create a Spring MVC web application, display a current date on a JSP page. Technologies used: Maven 3.5.3, JDK 8, Spring 5.1.0.RELEASE, JUnit 5, Logback 1.2.3, Jetty 9.4.x or Tomcat 8.5
As probably you know that building a software project typically consists of such tasks as downloading dependencies, putting additional jars on a classpath, compiling source code into binary code, running tests, packaging compiled code into deployable artifacts such as a JAR, WAR, and ZIP files, and deploying these artifacts to an application server or repository. Apache Maven automates these tasks, minimizing the risk of humans making errors while building the software manually and separating the work of compiling and packaging our code from that of code construction.
Java 11 Interview Questions and Answers Java 11 Interview Questions and Answers Why Java 11 so crucial? What is difference between Oracle JDK and OpenJDK? …
The Spring Framework is a very robust framework, released in 2002. Its core features can be applied to plain Java applications or extended to complex, modern web applications. With such a vast array of functionalities, it’s only normal that it introduces us to some new annotations, which are a key part of developing Spring applications. Spring’s configuration is fully customizable, which was originally done through XML configuration files. However, this approach has become outdated, and most people nowadays resort to annotation configuration.
Spring Boot, MySQL, Spring Security, JWT, JPA, Rest API Build Restful CRUD API for a blog using Spring Boot, Mysql, JPA and Hibernate. Steps to …
REST API (also known as RESTful API) is an application programming interface (API) that adheres to the REST architectural conventions and constraints used in client-server communication. REST stands for REpresentational State Transfer, it was created by computer scientist Roy Fielding. REST API is no longer a strange concept to all dev brothers from frontend to backend. However, to understand and follow REST’s standard guidelines, many of you may still not know. So in this article, I will share these conventions.
APIs are created in ways that redefine and stretch products, services, and organizations. In this article, we’ll dig a little deeper into API design principles and best practices. Also, we’ll provide some examples and, hopefully, by the end, you’ll be more confident with moving forward with your APIs.
Spring is a popular Java application framework for creating enterprise applications. Spring Boot is the next step in evolution of Spring framework. It helps create stand-alone, production-grade Spring based applications with minimal effort. It promotes using the convention over configuration principle over XML configurations. Spring Boot Jersey tutorial shows how to set up a simple RESTFul application with Jersey in a Spring Boot application. Jersey is an alternative to Spring RESTFul applications created with @RestController.