You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Path('/hello')exportclassHelloController{/** * Send a greeting message. * @param name The name that will receive our greeting message */
@GET
@Path(':name')sayHello(@PathParam('name')name: string): string{return'Hello '+name;}}
After:
@Path('/hello')exportclassHelloController{/** * Send a greeting message. * @param name The name that will receive our greeting message */
@GETMapping(':name')sayHello(@PathParam('name')name: string): string{return'Hello '+name;}}
Can I use @get('hello') instead of @get and @path('hello').
That's simple and consistency with other framework.
The text was updated successfully, but these errors were encountered: