I tried this in Spring Boot 3.4.4 with spring-boot-starter-actuator. The application started fine and the actuator path showed the library actuator, and ignored the controller method.
I was expecting this to throw an ambiguous mapping exception, but it didn't.