Thursday, March 26, 2020

Spring Boot Intro (SpringBoot #01)

Spring boot is a project of Spring. Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run". Spring boot application needs minimal spring configurations. Spring boot is a spring module that provides rapid application (RAD) development features of spring framework. I have following mentioned some of Spring boot features according to the Spring boot official documentation.

Features set of Spring boot:
  • Create stand-alone spring applications
  • Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)
  • Provide opinionated 'starter' dependencies to simplify your build configuration
  • Automatically configure Spring and 3rd party libraries whenever possible
  • Provide production-ready features such as metrics, health checks, and externalized configuration
  • Absolutely no code generation and no requirement for XML configuration 


Spring boot= spring framework + embedded servers (tomcat,jetty) -  complex XML configurations

Spring boot is combination of Spring framework and Tomcat,jetty embedded servers. And also it removes complex xml configurations of Spring framework.

Benefits/Importance of Spring boot:
  • Dependency injection approach is used in spring boot
  • Powerful database transaction management capabilities
  • It simplifies integration with other Java frameworks like JPA/Hibernate ORM, Struts, etc.
  •  It reduces the development time
  • It has embedded web servers (tomcat,jetty)
  • Reduced XML configurations
  • It offers a CLI tool for developing and testing the Spring Boot application.
  •  It provides production-ready features such as metrics, health checks, and externalized configuration.
  •  It provides opinionated 'starter' POMs to simplify our Maven configuration.
  • It creates stand-alone Spring applications that can be started using Java -jar.

Prerequisites for Spring boot:
  • Java 1.8
  • Maven 3.0 <
  • IDE (Spring tool suite -STS is recommended ) 
I will explain simply how to work with Spring boot in coming up next article series.
Happy Coding !

References:

Tuesday, March 3, 2020

How to import a JAVA WAR file to IDM RAD to continue as a new Project



This article shows the way of importing a Java WAR file to an another computer to continue as a new project with IDM RAD. IDM RAD (Rational Application Developer) is an integrated development environment which is built by IBM based on Eclipse.  Lot of programmers are facing problems when importing previously complied projects to an another computer.  If you are going to start developments or software modification of an earlier compiled program with IBM RAD,  It is better if you continue with the same IDE in your computer. I assume, You have already configured your development environment with RAD.
Let’s start.  Open your RAD IDE and create a sample project with any name, if not exist any project. If no any pre-created project, system will not allow this task. This may depend on some editions.  Next step, copy the WAR file (target file for the project) to a preferred location of your computer. Then, Go the “file” section in the menu bar. Then, file >> import.  After that you can see a window as screen2.


Screen1


Screen2 


Then browse the appropriate category according to your target format. Here, I am explaining about RAR file importing. Expand ‘web’ > select WAR. Then browse the target WAR file that you have saved.






Screen 3


AS Screen3 assign a target run-time and  go next and finish.
Then your project will be imported to your workspace successfully.  You are able to import project with another project type also (such as an existing workspace, archived file..etc) , like this way. Cheers !