In this Spring Security tutorial, you will learn how to use the @PreAuthorize annotation to secure method invocation. You can use the @PreAuthorize annotation to secure either method in a Controller class or a method in a service layer class. There are other useful method level security annotations like the ones below. It is useful…

Read More Spring Security @PreAuthorize Annotation Example

In this Spring Security tutorial, you will learn how to enable and use the Method Level Security with @Secured annotation. There are other useful method level security annotations like the ones below. It is useful to know how they work as well. @PostAuthorize Security Annotation Example, @PreAuthorize Security Annotation Example. If you are interested in video…

Read More Spring Security @Secured Annotation Example

If needed, it is possible to make UILabel clickable in Swift although it is recommended to use UIButton instead. To make UILabel clickable in Swift, you will need to create a UITapGestureRecognizer and then add it to a label. In this tutorial, you will learn how to create UILabel in Swift programmatically and how to…

Read More Clickable UILabel in Swift Programmatically

In this short tutorial, you will learn how to remove a single item from a dictionary in Swift as well as how to remove all items from a dictionary. Create a New Dictionary Let’s say you have created the following dictionary with a few key-value pairs in it. var myDictionary = [“firstName”: “Sergey”, “lastName”: “Kargopolov”,…

Read More Remove an Item From a Dictionary in Swift

In this tutorial, you will learn how to make Zuul API Gateway pass an Authorization header to a downstream Microservice. To learn how to make Spring Boot Microservice read HTTP Request headers, please read this tutorial: Read HTTP Request Header in Spring MVC. Configure Zuul API Gateway to Forward an Authorization Header By default, Zuul…

Read More Pass Authorization Header to Downstream Microservice

When writing code, we organize functionality into functions and group functions and different properties into classes. In Swift, additionally to creating classes we can also create structures or struct for short. Although very similar, Swift classes are different from swift structures. Comparing Structures and Classes According to Swift documentation, structures and classes in Swift have many…

Read More Swift Struct Tutorial with Code Examples

In this tutorial, you will learn how to create UILabel programmatically using a specific height, width, and position as well as using an auto layout. To write Swift code I will use Xcode Playground and if you are interested to learn how to create a new Xcode Playgrounds project, have a look at this tutorial…

Read More Create UILabel Programmatically in Swift

In this tutorial, I am going to share with you how to generate a self-signed certificate and enable HTTPs/SSL support in a Spring Boot application. You will also learn how to configure RestTemplate HTTP client to use the same self-signed certificate to communicate with your Web Service over HTTPs. Let’s start by generating a self-signed…

Read More Enable HTTPs/SSL in Spring Boot App