title: How to set www before domain name and after http:// in Spring Boot and JavaScript?
body: <p>I want to know about redirection of domain. That is I want to add www before domain name. How to achieve this thing in Spring boot and JavaScript.</p>
  <p>My URL is : <a href="https://example.com/dashboard" rel="nofollow noreferrer">https://example.com/dashboard</a></p>
  <p>I want this:
  <a href="https://www.example.com/dashboard" rel="nofollow noreferrer">https://www.example.com/dashboard</a></p>