A message body writer for Java class java.lang.String, and Java type class java.lang.String, and MIME media type text/plain was not found. The registered message body writers compatible with the MIME media type are: */* -> com.sun.jersey.server.impl.template.ViewableMessageBodyWriter
將項目中的jetty-server改爲jersey-bundle便可。java