Changing Context Path Of Web Application In Tomcat Server

Introduction Here I am going to show you how to change context path of web application in Tomcat server. So, basically web applications are deployed into Tomcat server and meaningful, memorable context paths are assigned for web applications. Even if you do not want to set any context path for an application, you can do so. For every web application…

Reload Changes in Flask Web App Without Server Restart

Introduction In this example I am going to show how your application can reload changes without server restart in Flask applications in development environment. Situations may occur when you need to speed up your development works without having to worry about restarting the server for every change in the piece of code in your application. Flask development server provides such…

Integrate npm web app in Spring Boot with Gradle

Integrate npm web app in spring boot with gradle is basically a multi-module project as we have seen in our earlier tutorials here with maven build in spring boot and here with maven in Eclipse. But the example on integrate npm web app in spring boot with gradle uses gradle to build the project. Here we basically create two modules…

Spring @MatrixVariable in a map

In this tutorial I will show you how to obtain matrix variable (using @MatrixVariable annotation) in a map from the URL segment. The URI has the possibility of including name-value pairs within path segments. INnSpring MVC these are referred to as matrix variables. If a URL is expected to contain matrix variables, the request mapping pattern must represent them with…

Spring optional @MatrixVariable with default value

In this tutorial I will show you how we use optional @MatrixVariable with default value in Spring Web MVC. I am going to show you how to set default value to matrix variable to make it optional in the URL segment. The URI has the possibility of including name-value pairs within path segments. Within Spring MVC these are referred to…

Spring @MatrixVariable at specific position in a URL

This tutorial will show you how we use @MatrixVariable annotation in Spring Web MVC. The URI has the possibility of including name-value pairs within path segments. The general “URI path parameters” could be applied although the more unique “Matrix URIs” is also frequently used and fairly well known. Within Spring MVC these are referred to as matrix variables. Matrix variables…

Spring @MatrixVariable

In this tutorial I will show you how to use @MatrixVariable annotation in Spring Web MVC (Model View Controller) application. The URI has the possibility of including name-value pairs within path segments. The general “URI path parameters” could be applied although the more unique “Matrix URIs”, originating from an old post by Tim Berners-Lee, is also frequently used and fairly…

Spring Web MVC @PathVariable with Regular Expressions

This tutorial will show you how we use @PathVariable annotation with Regular Expressions in Spring Web MVC. Sometimes you need more precision in defining URI template variables. The @RequestMapping and @GetMapping annotations support the use of regular expressions in URI template variables. The syntax is {varName:regex} where the first part defines the variable name and the second – the regular…

Spring Boot Web MVC @PathVariable

Path Variable This tutorial will show you how to use @PathVariable annotation in Spring MVC. The @PathVariable annotation is used on a method argument to bind it to the value of a URI template variable. You can also make this path variable optional in the URI. Path variable can appear in any path segment of the URI.

Spring Web MVC

This tutorial will show you how we configure Spring MVC, maven and Tomcat 7. For this tutorial we will create maven based web project in Eclipse. If you already have an idea on how to create a maven project in Eclipse will be great otherwise I will tell you here how to create a maven project in Eclipse.