1

It is possible in SpringBoot to map localhost into example.com like in Laravel, like below? How to change localhost url for Laravel

Marek Borecki
  • 402
  • 1
  • 4
  • 20

2 Answers2

2

Adding the following:

127.0.0.1 example.com

to your C:\Windows\System32\drivers\etc\hosts file should suffice.

Domenico Sibilio
  • 1,189
  • 1
  • 7
  • 20
2

Add this to your hosts file 127.0.0.1 example.com

Or if you are using linux you can set this as your hostname example.com

NoobCoder
  • 61
  • 4