Skip to content
Advertisement

Tag: url

Spring Boot Patient Application

an image of code for some reason I am trying to have a little API run. Everything runs fine but I have to make an addition and am confused. I have to have it so in the URL when I type “localhost:8080/api/v1/{illness}” it will display the names of the people with that illness…help. I have included the two classes that

non-capturing group still shows?

I am trying to get the string starting from third / in a url. here is the url: http://192.168.1.253:18888/2021/03/11/896459e4-875f-455a-a2cb-768c879555e7.png I wish to get /2021/03/11/896459e4-875f-455a-a2cb-768c879555e7.png So I used the following regex (?://.+)/.+ ?: marks a non-capturing group, so //192.168.1.253:18888 shouldn’t be matched. But when I test in regex101.com, its result is //192.168.1.254:18888/2021/03/11/896459e4-875f-455a-a2cb-768c879555e7.png. Why is that? Answer The reason the regex101.com result

Spring Rest Template Injects Value into Parameter with %

Can someone please explain to me what is happening in the following code? If I run: Spring tells me that the URL used is https://example.com/../username/path where username = user%25123 even though I set the username = user%123. This is looking to me to be not a Spring issue, rather a URL encoding issue, but can anyone tell me where this

Advertisement