vulab | Category Archive | Programming

Archive | Programming

Posted on 11 March 2017 by Srinivas Nelakuditi

REST Web Services With Java Spring Framework Part 6

In the last part of this series, you have built a web service with Jersey, Spring Framework and Spring Boot. In this part you will learn to integrate Swagger with REST Web Services. Swagger will help in automatically documenting your web services, publish your documents and easily allows you to test your web services.

Continue Reading

0 Comments

Posted on 11 March 2017 by Srinivas Nelakuditi

Spring Framework REST Web Services Tutorials

Please use the following tutorials to master Spring Framework with REST REST Web Services with Java Part 1 REST Web Services with Java Part 2 REST Web Services with Java Part 3     REST Web Services with Java Part 4   REST Web Services with Java Part 5

Continue Reading

0 Comments

Posted on 08 March 2017 by Srinivas Nelakuditi

REST Web Services with Java Part 5

In Part 4 you have created a maven project in Eclipse IDE. Update your pom.xml with the following: <?xml version=”1.0″ encoding=”UTF-8″?> <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/xsd/maven-4.0.0.xsd”>     <modelVersion>4.0.0</modelVersion>     <groupId>com.vulab</groupId>     <artifactId>VULAB-REST-WEB-SERVICE</artifactId>     <version>0.0.1-SNAPSHOT</version>     <packaging>jar</packaging>     <name>demo</name>     <description>Demo project for Spring Boot</description>     <parent>         <groupId>org.springframework.boot</groupId>         <artifactId>spring-boot-starter-parent</artifactId>        […]

Continue Reading

1 Comment

Posted on 06 March 2017 by Srinivas Nelakuditi

REST Web Services with Java Part 4

Let us create a REST Web Service with Java using JAX-RS Standard. We will use the following stack: 1. JDK 8 2. Eclipse IDE 3. Apache Maven 4. Spring Framework 5. Spring Boot 6. Jersey as JAX-RS Implementation STEP 1: Install JDK 8 on your OS. You can download and install JDK 8 from this […]

Continue Reading

0 Comments

Posted on 06 March 2017 by Srinivas Nelakuditi

REST Web Services with Java Part 3

Let us look at a sample web service code snippet created using JAX-RS annotations package com.vulab.code; import javax.ws.rs.GET; import javax.ws.rs.Produces; import javax.ws.rs.Path; // The Java class will be hosted at the URI path “/helloworld” @Path(“/helloworld”) public class HelloWorldResource { // The Java method will process HTTP GET requests @GET @Produces(“text/plain”) public String helloWorldVulab() { return […]

Continue Reading

0 Comments

Posted on 06 March 2017 by Srinivas Nelakuditi

REST Web Services with Java Part 2

Developing RESTful Web Services with Java using JAX-RS JAX-RS is a Java programming language API designed to make it easy to develop applications that use the REST architecture. As a developer you can use JAX-RS annotations in your code to create a RESTful Java Web Service. Following are the important JAX-RS annotations for building REST […]

Continue Reading

0 Comments

Posted on 06 March 2017 by Srinivas Nelakuditi

REST Web Services with Java Part 1

REST is equal to REpresentational State Transfer. REST as a web standard is created in year 2000. REST web services uses HTTP protocol for data communication between source and destination. In a REST web service. Every database table on the server is a resource. A client can access the resource on the server using standard […]

Continue Reading

0 Comments

Posted on 01 October 2015 by VPhani

Spring Data JPA with Java configuration

STEP ONE: Create New Dynamic Web Project In Eclipse IDE We are creating a web project as we ultimately want to build a REST web service also. REST web service will use the Spring Data JPA layer to work with the database. You will need JDK 7 or JDK 8 installed on your machine. You […]

Continue Reading

0 Comments

Posted on 03 February 2015 by Srinivas Nelakuditi

Java Interview Questions

VULAB is the best online provider for advanced Java training. We have successfully trained hundreds of teams and developers in Java. Vulab’s best java online training courses are ready for your enrollment. Object Oriented Programming (OOP) Java is a computer programming language that is concurrent, class-based and object-oriented. The advantages of object oriented software development are […]

Continue Reading

0 Comments

Posted on 26 December 2014 by Jawahar Jasthi

Cutomized object sorting in java using Comparable

There can be a situation where  a  list of objects need  to be sorted a particular way .This can be easily achieved by using comparable interface. The following example shows the usage of comparable interface to sort list of snacks using comparable interface . package com.vulab.comparable.example; /** * @author jawahar * */ public class Snack […]

Continue Reading

0 Comments