0
相同的資源POST方法我想不是在相同的資源類Restlet框架的一個POST方法越多,如下圖所示:電話比在Restlet框架
public class Myclass extends ServerResource {
private Logger log = Logger.getLogger(LoginResource.class.getName());
@Post
public Representation createUser(final Representation representation) throws IOException {
..........................
................................
}
/**
* This class will help in creating a person.
* @return representation Representation
* @param representation Representation
* @throws IOException IOException
*/
@Post
public Representation createAllUser(final Representation representation) throws IOException {
...............
...............................
return new JacksonRepresentation<>("Success");
}
}
怎麼做呢?請根據我的問題提供一些解決方案。請幫幫我。