How to access a custom RESTful API

Hi,Everybody is good

I refer to this article to customize a RESTful API, but HTTP request 404, this is my request address http://localhost:8080/myresources/world.

image

Where can I write wrong?
I hope to get your help.

How did you deploy this component in your XWiki instance?

I have build the component, execute mvn clean install,copy that JAR file in /WEB-INF/lib/,then start tomcat.

Have you created a META-INF/components.txt file to register the component?

Thank you, you are right. :blush: