Creating REST Controller in Spring.
In previous article we learned about creating a new Spring boot application using Spring Initializr. In this article we will learn how to create REST controller in our application. Step 1: Open the application which we have created in our previous article. Follow the below steps: Create a new folder controller inside the package com.techopaths.springboot.demoRight click on springboot folder -> new -> folder.Type controller...
Creating a Spring Boot Project With Eclipse and Maven
In this article we will learn how to create a Spring boot application using Spring Initializr. For this you need to have: Maven 3.0+ is as your build tool.Eclipse IDE (You can use any)JDK 1.8+ Step 1: Go to Spring Initializr website https://start.spring.io Step 2: Once you will open the website you will see a lot of options. As you can see in above image Select...
What is Docker?
Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. A Docker container image is a lightweight, standalone, executable package of software that includes everything needed to run an application. The image can contain code, runtime, system tools, system libraries, and settings. By doing this, the developer can rest assured that the application will...
What are microservices?
"MICROSERVICES IS A SOFTWARE DEVELOPMENT TECHNIQUE THAT ARRANGES AN APPLICATION AS A COLLECTION OF LOOSELY COUPLED SERVICES" Robert C. Martin coined the term single responsibility principle. It states “gather together those things that change for the same reason, and separate those things that change for different reasons.” Microservice architecture is based on the same technique. In this, the application is divided...
What is Java class File?
In previous article we learned how to Write your first Java program. A Java class file is a file that contains Java bytecode and having .class extension. A Java class file is created by a Java compiler from .java files after successful compilation. If a .java file (source file) has more than one class then each class will compile into separate class files. Let us take an example,...
Hello, World! – Your First Java Program
In our previous post we learned "What is Java". In this tutorial, you will learn how to write "Hello World" in Java. To run this program on your computer you need to install Java on your machine. To install visit java.com. Here are the followings steps: Step 1: Open your preferred IDE or text editor like notepad or notepad++ and write the below code public...
How to create an Alexa developer account?
The developer console provides a streamlined experience to help you create, manage, and publish your skills. To create a develop account follow the below steps: Step 1: Visit https://developer.amazon.com/alexa/console/ask and a sign in page will open. If you don't have an existing Amazon account then follow Step 2. Step 2: Click on "Create your Amazon account" to create a new account. Fill...
What is Java?
It is an object-oriented language similar to C++ with advanced features. Java is free to access and platform independent. It is intended to let developers “write once, run anywhere” (WORA), meaning that compiled Java code can run on all platforms that support Java without the need for recompilation. For example, you can write and compile a Java program on Macintosh and run...