How to track unique Web request in Spring Boot?

Viewed 5512

I have a Spring Boot (MVC) java server. How can I track each unique Web request? For example, I'd like to know the following.

  1. How to get user agent of Web request (browser type, device such as mobile or desktop)
  2. How to get the IP address or location of the Web request?
  3. How to count number of Web request? For examppe, I'd like to count the request count in a synchronized fashion.
1 Answers
Related