java 9 tutorial

Java 9 tutorial

Here is Java 9 tutorial and Java 9 features with examples and detail explanation like Java 9 module system, Java 9 jshell, Java 9 process API improvements, Java 9 reactive…

Spring boot hazelcast example

Spring boot hazelcast example

Spring boot micro service architecture requires to share cache between two micro service which are running independently so here we are explaining Spring boot hazelcast example and hazelcast configuration in…

Spring boot Cloud Eureka Server Example

Spring boot cloud eureka server example

This article contains Spring boot cloud eureka server example with step by step. Spring cloud provide netflix project for spring boot cloud implantation, Netflix provide eureka server feature to manage micro service…

Spring Security with Hibernate example

Spring Security with Hibernate example

This article contains spring security with hibernate example with detail explanation and source code. Technology: Spring-MVC Spring Security Hibernate MySQL Maven Intellij Project Structure Dependency: <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd”>…

Spring Security csrf example

Spring Security csrf example

This article contains Spring Security CSRF Example for authentication using Spring Security. This article help you to solve Cross Site Request Forgery (CSRF) problem using spring security. As of Spring Security 4.0, CSRF…

Spring boot hibernate example

Spring boot hibernate example

Spring boot comes with easy ways to configure hibernate. Here is Spring boot hibernate example with MySQL and Hibernate ORM. Spring also provide easy ways to configure hibernate using JTA but…

SOLR TUTORIAL

Solr Tutorial

This article contains Solr tutorial with different different example. Index Spring Boot Solr Example Solrj Client Basic Authentication Example Securing Solr Setup Basic Authentication Securing Solr-Solrj Client Example Securing Solr…

Spring Boot Solr Example

Spring Boot Solr Example

In this article we will going to discuss about how to integrate Solr with spring boot. Spring boot started data Solr is the extension of spring data which used to integrate…

if condition within JSTL or JSP

JSTL If Condition <c:set var=”language” value=”java”/> <c:if test=”${language == ‘java’}” > you are using java language </c:if> <c:if test=”${language != ‘java’}” > you are using not java language </c:if>  JSTL…

JSTL forEach Loop Example

Maven Dependency: <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.2</version> </dependency> Controller: @RequestMapping(value = “jstlForEach”, method = RequestMethod.GET) public String jstlForEach(ModelMap model) { List<Employee> employees = new ArrayList<>(); employees.add(new Employee(1, “Subhash Lamba”)); employees.add(new Employee(2,…

JSTL c:out example

JSTL Maven Dependency: <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.2</version> </dependency> Controller @Controller @RequestMapping(“/”) public class HelloController { @RequestMapping(value = “out”,method = RequestMethod.GET) public String printWelcome(ModelMap model) { model.addAttribute(“message”, “Hello JSTL!”); return “out”;…

java.lang.NoClassDefFoundError: javax/xml/bind/ValidationException

While working with java 9 this exception may generate exception java.lang.NoClassDefFoundError: javax/xml/bind/ValidationException which indicate that javax/xml/bind/ValidationException class is not accessible. java.base does not contains java.xml.bind module by default. –add-modules option is used to add module dependency. Use…