Solving bug when we send an IP through pathvariable in spring