Author: Sergey Kargopolov

Software developer

Web: www.appsdeveloperblog.com

In this lesson, you will learn how to read URL query string parameters in your Spring MVC web application.   @RequestParam annotation Let’s assume that we need to create a method that needs to return a list but is limited to a certain number. To make our method read URL Query String Parameters, we will…

Read More Spring Web MVC – Reading URL Query String Parameters

In this tutorial, you will learn how to read URI path variables in your Spring MVC Web application. Define Path Variable To define the path variable in the URI path, we use curly brackets. The @GetMapping annotation below specifies one path variable called userId. Notice that userId is surrounded by curly brackets. @GetMapping(path=”/users/{userId}”) @PathVariable Annotation…

Read More Spring Web MVC – Reading URI Path Variables

In this tutorial, you will learn how to pass information from your Controller class to the View using the Spring MVC ModelAndView object. In previous lessons, we discussed how to use Model and ModelMap for the same purpose – to pass properties from Controller to the View.  The ModelAndView class, you will also use to pass…

Read More Spring Web MVC – The ModelAndView Object

In this tutorial, you will learn to configure your Spring Boot Web MVC application support Thymeleaf templates. Thymeleaf Maven Dependency To make your Spring Boot Web MVC application support Thymeleaf templates, you will need to add one additional dependency to the pom.xml file. <!– https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-thymeleaf –> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> Templates Folder In the Spring…

Read More Spring Web MVC – Configure Thymeleaf Support

In this tutorial, you will learn how to configure the Spring Boot Web MVC application to support JSP(Java Server pages) and JSTL(JSP Standard Tag Library). Video Tutorial Maven Dependencies To configure your Spring Boot application to support Spring MVC, JSP and JSTL add the following maven dependencies to the pom.xml file. Spring Web The following…

Read More Spring Web MVC – Configure JSP Support

This tutorial is a high-level overview of the Spring Web MVC framework. Below is a high-level diagram of how things work in a Spring MVC Web application built with Spring Boot.    Most online tutorials or books will show you a similar diagram that is designed around the Dispatcher Servlet. Because this Dispatcher servlet is…

Read More Spring Web MVC – Overview for Beginners

In this short Swift code example, we will use the UIAlertController to create an alert dialog message with only one “OK” button. The code example below will demonstrate how to: Create UIAlertController with a Title and a Message to display, Add a UIAlertAction with the OK label to UIAlertController, Handle UIAlertAction to know when the user taps…

Read More Create UIAlertController with OK Button in Swift

The following Swift code example demonstrates how to create a UIWebView programmatically and how to make it render HTML code. To break it into smaller steps, the below code snippet demonstrates how to: Create UIWebView programmatically, Implement UIWebViewDelegate functions webViewDidStartLoad and webViewDidFinishLoad, Make UIWebView render HTML Code. Render HTML in UIWebView import UIKit import WebKit class…

Read More Create UIWebView Programmatically and Render HTML Code

This tutorial will teach you how to create your own Spring Cloud Config Server and configure a Spring Boot Application to be a Spring Cloud Config Client. Spring Cloud Config Server Spring Cloud Config Server is a Spring Boot application. So to create our own Spring Cloud Config Server, we must first create a new…

Read More Spring Cloud Config Server and Config Client

The Swift code example below demonstrates how to create a UIWebView programmatically and how to load a webpage using the URL.  If we look at the below code example in details, it will also show how to: Create UIWebView programmatically, Implement the UIWebViewDelegate functions like the webViewDidStartLoad and the webViewDidFinishLoad Make UIWebView load a webpage…

Read More Create UIWebView Programmatically and Load Webpage Using URL

The following Swift code example demonstrates how to make UIImage corners rounded. Additionally, the code snippet below also demonstrates how to: Add a border around UIImage, Change the UIImage border color. Making UIImage Corners Rounded import UIKit class ViewController: UIViewController { @IBOutlet weak var profile_picture: UIImageView! override func viewDidLoad() { super.viewDidLoad() // Make image borders rounded…

Read More Make UIImage Corners Rounded

The following Swift code snippet demonstrated how to make a UIImage circular.  It will also show how to: Make UIImage Circular programmatically and How to add a border around UIImage, Change UIImage border color. import UIKit class ViewController: UIViewController { @IBOutlet weak var profile_picture: UIImageView! override func viewDidLoad() { super.viewDidLoad() // Make image circular profile_picture.layer.cornerRadius =…

Read More Make UIImage Circular Programmatically