Open ifduyue opened 2 years ago
Hey, sorry as I moved away from Spring Boot I don't use this library anymore.
If I had the time to look into that I would research why Spring does not use the https://github.com/fehnomenal/hashids-spring-boot-starter/blob/680dff0045/src/main/java/systems/fehn/boot/starter/hashids/HashidsAnnotationFormatterFactory.java for int
arguments.
Please contribute if you find some results!
Hello,
Thanks for the reply. I am new to Java and I don't understand Java annotation code very well. But I'll try.
Hello,
I was trying to use hashids-spring-boot-starter in a project in order to hide auto increment id from clients.
Everything works, except that putting integer directly in the path still returns corresponding result. For example, Integer
1
was encoded into StringgeGprexD
, bothhttp://localhost:8080/1
andhttp://localhost:8080/geGprexD
return the same result. How to permit onlyhttp://localhost:8080/geGprexD
, and makehttp://localhost:8080/1
throw an exception?