Previous Lecture Lecture 15 Next Lecture

Lecture 15, Mon 11/18

More Spring Boot Skills

The network tab on Github

Let’s take a look at the Network tab on Github.

You’ll find it under “Insights”

Example:

This is helpful for tracking what branches you have and what state they are on, and whether they’ve been merged into master or not.

Adding an Inceptor

An interceptor allows you to run some code before, and after each of the web controller methods runs.

Most web frameworks have some way of doing this.

It allows you to factor out things that should “always happen” at the beginning and the end.

Here’s a pull request that illustrates how this works:

While we are at it, let’s look at at ControllerAdvice as well.