Entries from 2018-01-01 to 1 year

Spring boot rest api example - Spring boot tutorials

This tutorial walks us through the process of creating a simple REST controller with Spring Boot Kotlin works quite smoothly with Spring Boot and many of the steps found on the Spring Guides for creating a RESTful service can be followed v…

Jsp interview questions

What do you understand of the JSP technology and why is it used? Java Server Pages (JSP) is a cross-platform technology residing on the presentation layer and is the part of the SUN’s J2EE platform. JSPs are like standard HTML web pages wi…

Servlet lifecycles phases

The life cycle of a servlet consists of the following phases: Servlet class loading : For each servlet defined in the deployment descriptor of the Web application, the servlet container locates and loads a class of the type of the servlet.…

How to Use Arraylist Effectively in Java

1.ArrayList Constructors The ArrayList class supports three constructors. Arraylist() This constructor builds an empty list. ArrayList(Collection c) This constructor creates a list containing the elements of the specified collection. Note …

New features and enhancements in Spring Boot 2.0 include:

Java 8 is required as a minimum version for running Spring Boot. APIs have been updated to use Java 8 features such as default methods on interfaces. Java 9 is supported. Reactive programming support is added via Spring WebFlux/WebFlux.fn.…

What Are The Waterfalls Around Munnar

1. Cheeyappara waterfalls Cheeyappara waterfalls lie on the Kochi­ Madurai highway in Idukki district. It is around 40 km away from town. This creates a beautiful location which cascades down in seven steps, with 60ft height. This pictures…

How To Reach Munnar From Chennai

Munnar By Air Nearest major airport is Cochin International airport which is about 125 km away. Taxi services are available from airport to Munnar which cost about Rs 3000. Cochin airport is well connected to all major cities in India and …

Munnar tourist places

ERAVIKULAM NATIONAL PARKOne of Kerala’s finest wildlife reserves, the Eravikulam National Park is spread over 97 kilometres of the Rajamalai Hills near Munnar. The vegetation in the park is a combination of grassland and shola forest. The …

How to reach munnar from chennai

Looking for Munnar route for your vocation. From Chennai, you can reach Munnar via train, bus, and flight. While choosing flight as your medium cochin and Madurai and Coimbatore are might your options. There are direct flights from Chennai…

Munnar tourist places

1. TATA Tea Museum Tata Tea Museum is located at the Nallathanni estate and the museum has curios and photographs that traces the growth and evolution of tea plantations in Munnar right from the tea sapling to an automated tea factory wher…

8 BEST PLACES TO VISIT IN MUNNAR

I.Eravikulam National Park(RajaMalai): is considered as oneof the best places to visit in Munnar. watch the Nilgiri thaws(rare species of mountain goats,) here you can find a rare ENTRY FEES FOR ERAVIUKULAM NATIONAL PARKIndian – 83/- (Chil…

Features of Angularjs

Ease of use: AngularJs is infused with some rich features that make it easy for AngularJs Web Application Development professionals to create websites by writing minimum codes. There is no need to write setters and getters for applying dif…

Configuring Servers With Spring boot

Consider you are using tomcat, springboot by default uses tomcat 7, if you want to change a version to tomcat 8, please add the below code in pom.xml <properties> <tomcat.version>8.0</tomcat.version> </properties> If you want to change server, from tomcat to jetty server the add below code

Spring boot features in productions

When a large scale enterprise application is running then the operations team is always worried about its health parameters. They have to keep a constant tab on whats working and what is not working? Whether the application is up or down. …

Angularjs For Effective Web Developement

Simple architecture AngularJS development is considered as the simpler design architecture which is used nowadays and easy to catch up for any developers and enhance the features to any extent which client requires. It works extremely well…

Basic java interview questions and answers

Can I store a double value in a long variable without casting? No, you cannot store a double value into a long variable without casting because the range of double is more that long and you we need to type cast. It's not dificult to answer…

Spring boot mongodb configuration

I’ll use these technologies and tools: Spring Tool Suite (STS) 3.8.4.RELEASE Java 8 Spring Boot 1.5.3.RELEASE Maven 3.3.9 MongoDB 3.3.4 1. The Project Structure The final folder structure of our project. 2. Create a new Spring Boot project…

SPRING BOOT HELLO WORLD EXAMPLE

A Simple Spring boot webapplication example, using Embedded Tomcat + JSP, and package as an executable JAR file. Technologies used : Spring Boot 1.5.6 RELEASE Spring 4.3.10 Embeded Tomcat 8.5.16 Maven 3.5.0 Java8 Here is the directory stru…

Spring boot Using log4j logging

Spring boot uses an opinionated approach for a lot of things, with logging being one. It uses Logback by default. While Logback is useful, some of you may want to use a different log library. What do you have to do to use log4j as the logg…

Simple Web application with Spring Boot

Introduction The Pivotal team has done a great job of coming with Spring Boot microservice application stack. In the next few blogs, I will demonstrate the capabilities of Spring Boot to write a Medium Complex application (Not a Todo appli…

Reactjs and Angularjs and vue comparision

React/Redux has more job opportunities over any other single framework mentioned. It also follows the direction JavaScript itself is heading, so feels most future-proof. One of the biggest bullet points on my ‘is this a good framework’ lis…

JDK Logging in Spring Boot Applications

When writing spring boot applications, it is recommended to use SLF4J API for logging. However it is also possible to use the logging implementation provided by JDK directly. However JDK logging implementation (JUL) provides a different se…

Spring boot quartz example

Gradle build file to Resolve JAR Dependency Build.gradle config dependencies: buildscript { repositories { mavenLocal() jcenter() mavenCentral() } } apply plugin: 'java' plugins { id "io.spring.dependency-management" version "1.0.4.RELEASE…

Spring boot quartz

Spring can't inject spring bean when using Quartz in Spring . The job in Quartz is reflected by the instance and is not managed by spring. As a result, the spring in the job cannot be injected into the spring. solution Quartz has a JobFact…

Spring boot Quartz with example

When it comes to scheduling jobs in a java application, Quartz is the first tool that comes into consideration. Quartz is job scheduler backed up by most popular RDBMSes.It is really convenient and gets integrated with spring quite easy. I…

Application Programming Interface In Java

An application programming interface (API), in the context of Java, is a collection of prewritten packages, classes, and interfaces with their respective methods, fields and constructors. Similar to a user interface, which facilitates inte…

Spring Framework Applications

In this article let’s try to discuss why it is so popular and why use it. So let’s focus on the major advantages of this open source application framework for the Java platform. Following are some of the major benefits offered by the Sprin…

Java hibernate manytomany to manage user role

Example: one User have many roles and one Role have many users, and now we will have one User_Role table. We will have following situation: Action 1: insert roles Action 2: insert users and insert user_role Action 3: delete users We can us…

Hibernate Many to Many Join Table

Let’s say for instance we have a group of Students that wish to enroll in several University Courses. Storing the Students and Courses in a relational database is trivial, however, how do we express Students that are enrolled in Courses? T…

Spring MVC Simple Example

In this article we will learn how to create a login page using Spring MVC. The user enters the login id and password and we will have a check on the controller to see if the credentials are valid. For this article we will not connect to th…