I was developing code looking at https://howtodoinjava.com/spring-boot/spring-boot-soap-webservice-example/, In the below bean I want to allow request to be executed for
The mapping works for me. I downloaded the example and made changes as per your question.
I see the mappings registered(log) and the wsdl(browser) loaded as shown in the screenshot.
Mapping servlet: 'messageDispatcherServlet' to [/*, /service/*]
Spring Boot Log, WSDL Soap Request Response
Not sure what's not working for you. "Below configurations doesn't works when we execute the /service/* url."