jersey put 服务_项目学生:带有Jersey的Web服务服务器
jersey put 服務
這是Project Student的一部分。 其他職位包括帶有Jersey的Webservice Client , 業務層和帶有Spring Data的持久性 。
RESTful Web應用程序洋蔥的第二層是Web服務服務器。 它應該是一個薄層,用于包裝對業務層的調用,但不對其自身進行大量處理。 這篇文章有很多代碼,但主要是測試類。
設計決策
澤西島 -我將澤西島用于REST服務器。 我考慮了替代方案-Spring MVC , Netty等,但出于與客戶相同的原因,決定選擇Jersey。 它輕巧,不會限制開發人員。
依賴注入 –我需要依賴注入,這意味著我需要確定一個框架:Spring,EJB3,Guice等。我已經知道我將在持久層中使用Spring Data ,因此使用它很容易春天的框架。 我仍然會謹慎地最小化該框架上的任何依賴關系(ha!),以實現最大的靈活性。
局限性
球衣 –我不知道球衣將如何處理高負荷。 這是REST服務器必須是業務層的薄包裝的關鍵原因-如果有必要,更改庫將相對容易。
用戶權限 –沒有嘗試將對某些方法的訪問限制為特定用戶或主機。 這應該由業務層來處理,而安全性異常將由REST服務器轉換為FORBIDDEN狀態代碼。
澤西REST服務器
REST API是我們早期的設計文檔之一。 對于服務器,這意味著我們從REST服務器開始而不是從業務層API開始實現該層。 實際上,REST服務器在業務層API中定義了必要的方法。
與標準的REST CRUD API有一個小的偏差:對象是使用POST而不是PUT創建的,因為后者的語義是完全按照提供的方式創建了對象。 我們無法做到這一點–出于安全原因,我們從不公開內部ID,也不得接受用戶定義的UUID。 這意味著我們將違反REST API合同,因此我們改用POST。
還有一個小作弊:CRUD合同僅需要具有創建或更新對象的能力。 這意味著我們只需給出路徑就可以找出所需的操作–我們不需要添加特定的“操作”字段。 隨著我們將實現擴展到不僅僅包括CRUD動作,這可能會改變。
繼續執行代碼...
@Service @Path("/course") public class CourseResource extends AbstractResource {private static final Logger log = Logger.getLogger(CourseResource.class);private static final Course[] EMPTY_COURSE_ARRAY = new Course[0];@ContextUriInfo uriInfo;@ContextRequest request;@Resourceprivate CourseService service;/*** Default constructor.*/public CourseResource() {}/*** Unit test constructor.* * @param service*/CourseResource(CourseService service) {this.service = service;}/*** Get all Courses.* * @return*/@GET@Produces({ MediaType.APPLICATION_JSON, MediaType.TEXT_XML })public Response findAllCourses() {log.debug("CourseResource: findAllCourses()");Response response = null;try {List<Course> courses = service.findAllCourses();List<Course> results = new ArrayList<Course>(courses.size());for (Course course : courses) {results.add(scrubCourse(course));}response = Response.ok(results.toArray(EMPTY_COURSE_ARRAY)).build();} catch (Exception e) {if (!(e instanceof UnitTestException)) {log.info("unhandled exception", e);}response = Response.status(Status.INTERNAL_SERVER_ERROR).build();}return response;}/*** Create a Course.* * @param req* @return*/@POST@Consumes({ MediaType.APPLICATION_JSON, MediaType.TEXT_XML })@Produces({ MediaType.APPLICATION_JSON, MediaType.TEXT_XML })public Response createCourse(Name req) {log.debug("CourseResource: createCourse()");final String name = req.getName();if ((name == null) || name.isEmpty()) {return Response.status(Status.BAD_REQUEST).entity("'name' is required").build();}Response response = null;try {Course course = service.createCourse(name);if (course == null) {response = Response.status(Status.INTERNAL_SERVER_ERROR).build();} else {response = Response.created(URI.create(course.getUuid())).entity(scrubCourse(course)).build();}} catch (Exception e) {if (!(e instanceof UnitTestException)) {log.info("unhandled exception", e);}response = Response.status(Status.INTERNAL_SERVER_ERROR).build();}return response;}/*** Get a specific Course.* * @param uuid* @return*/@Path("/{courseId}")@GET@Produces({ MediaType.APPLICATION_JSON, MediaType.TEXT_XML })public Response getCourse(@PathParam("courseId") String id) {log.debug("CourseResource: getCourse()");Response response = null;try {Course course = service.findCourseByUuid(id);response = Response.ok(scrubCourse(course)).build();} catch (ObjectNotFoundException e) {response = Response.status(Status.NOT_FOUND).build();} catch (Exception e) {if (!e instanceof UnitTestException)) {log.info("unhandled exception", e);}response = Response.status(Status.INTERNAL_SERVER_ERROR).build();}return response;}/*** Update a Course.* * FIXME: what about uniqueness violations?* * @param id* @param req* @return*/@Path("/{courseId}")@POST@Consumes({ MediaType.APPLICATION_JSON, MediaType.TEXT_XML })@Produces({ MediaType.APPLICATION_JSON, MediaType.TEXT_XML })public Response updateCourse(@PathParam("courseId") String id, Name req) {log.debug("CourseResource: updateCourse()");final String name = req.getName();if ((name == null) || name.isEmpty()) {return Response.status(Status.BAD_REQUEST).entity("'name' is required").build();}Response response = null;try {final Course course = service.findCourseByUuid(id);final Course updatedCourse = service.updateCourse(course, name);response = Response.ok(scrubCourse(updatedCourse)).build();} catch (ObjectNotFoundException exception) {response = Response.status(Status.NOT_FOUND).build();} catch (Exception e) {if (!(e instanceof UnitTestException)) {log.info("unhandled exception", e);}response = Response.status(Status.INTERNAL_SERVER_ERROR).build();}return response;}/*** Delete a Course.* * @param id* @return*/@Path("/{courseId}")@DELETEpublic Response deleteCourse(@PathParam("courseId") String id) {log.debug("CourseResource: deleteCourse()");Response response = null;try {service.deleteCourse(id);response = Response.noContent().build();} catch (ObjectNotFoundException exception) {response = Response.noContent().build();} catch (Exception e) {if (!(e instanceof UnitTestException)) {log.info("unhandled exception", e);}response = Response.status(Status.INTERNAL_SERVER_ERROR).build();}return response;} }該實現告訴我們,我們需要三件事:
- 服務API(CourseService)
- 請求參數類(名稱)
- 洗滌器(scrubCourse)
我沒有顯示完整的日志記錄。 必須清除請求參數,以避免日志污染。 。 作為一個簡單的示例,請考慮使用寫入SQL數據庫的記錄器,以簡化分析。 這個記錄器的一個簡單的實現-不使用位置參數-將允許通過精心設計的請求參數進行SQL注入!
OWASP ESAPI包含可用于日志清理的方法。 我沒有包含在這里,因為設置起來有些麻煩。 (應該很快就會在簽入代碼中。)
為什么要登錄到數據庫? 一種好的做法是記錄到達服務器層的所有未處理的異常-您永遠都不想依靠用戶來報告問題,而且寫入日志文件的錯誤很容易被忽略。 相反,使用簡單工具可以輕松檢查寫入數據庫的報告。
發生未處理的異常時,高級開發人員甚至可以創建新的錯誤報告。 在這種情況下,至關重要的是維護一個單獨的異常數據庫,以避免提交重復的條目和使開發人員不知所措。 (數據庫可以包含每個異常的詳細信息,但錯誤報告系統每個異常類+堆棧跟蹤僅應有一個錯誤報告。)
服務API
CRUD操作的服務API很簡單。
public interface CourseService {List<Course> findAllCourses();Course findCourseById(Integer id);Course findCourseByUuid(String uuid);Course createCourse(String name);Course updateCourse(Course course, String name);void deleteCourse(String uuid); }該API還包含一個ObjectNotFoundException。 (這應該擴展為包括找不到的對象的類型。)
public class ObjectNotFoundException extends RuntimeException {private static final long serialVersionUID = 1L;private final String uuid;public ObjectNotFoundException(String uuid) {super("object not found: [" + uuid + "]");this.uuid = uuid;}public String getUuid() {return uuid;} }如上所述,我們最終還需要一個UnauthorizedOperationException。
請求參數
請求參數是封裝了POST負載的簡單POJO。
@XmlRootElement public class Name {private String name;public String getName() {return name;}public void setName(String name) {this.name = name;} }學生和教師也需要電子郵件地址。
@XmlRootElement public class NameAndEmailAddress {private String name;private String emailAddress;public String getName() {return name;}public void setName(String name) {this.name = name;}public String getEmailAddress() {return emailAddress;}public void setEmailAddress(String emailAddress) {this.emailAddress = emailAddress;} }最終的應用程序將具有大量的請求參數類。
洗滌塔
洗滌塔具有三個目的。 首先,它刪除了不應提供給客戶端的敏感信息,例如內部數據庫標識符。
其次,它可以防止由于引入集合而導致大量的數據庫轉儲。 例如,一個學生應包括當前部分的列表,但每個部分都有已注冊的學生和教師的列表。 這些學生和教師中的每一個都有自己的當前部分列表。 進行泡沫,沖洗,重復,最終將整個數據庫轉儲以響應單個查詢。
解決方案是僅包含有關每個可以獨立查詢的對象的淺層信息。 例如,一個學生將擁有當前部分的列表,但是這些部分將僅包含UUID和名稱。 一條很好的經驗法則是,清理后的集合應完全包含將在下拉列表和表示表中使用的信息,僅此而已。 演示列表可以包含鏈接(或AJAX操作),以根據需要提取其他信息。
最后,這是執行HTML編碼和清理的好地方。 應該清除返回的值,以防止跨站點腳本(CSS)攻擊 。
public abstract class AbstractResource {/*** Scrub 'course' object.** FIXME add HTML scrubbing and encoding for string values!*/ public Course scrubCourse(final Course dirty) {final Course clean = new Course();clean.setUuid(dirty.getUuid());clean.setName(dirty.getName());// clean.setSelf("resource/" + dirty.getUuid());return clean;} }配置類
我們有兩個配置類。 第一個始終由服務器使用,第二個僅在集成測試期間由服務器使用。 后者的配置(和引用的類)位于集成測試源樹中。
我更喜歡使用配置類(在Spring 3.0中引入),因為它們提供了最大的靈活性-例如,我可以根據運行應用程序或環境變量的用戶有條件地定義bean-并允許我仍然包括標準配置文件。
@Configuration @ComponentScan(basePackages = { "com.invariantproperties.sandbox.student.webservice.server.rest" }) @ImportResource({ "classpath:applicationContext-rest.xml" }) // @PropertySource("classpath:application.properties") public class RestApplicationContext {@Resourceprivate Environment environment; }Spring 3.1引入了配置文件。 它們可以工作-但是我正在使用的具有彈簧意識的jersey servlet似乎無法正確設置活動概要文件。
@Configuration //@Profile("test") public class RestApplicationContextTest {@BeanStudentService studentService() {return new DummyStudentService();} }web.xml
現在,我們有足夠的資源來實現我們的Web服務器。 使用的servlet是啟用了spring的Jersey servlet,它使用contextClass參數中給出的配置類。 (也可以使用配置文件,但不能使用配置類和文件的組合。)
該Servlet還包含spring.profiles.active的定義。 目的是通過spring 3.1 @Profile注釋有條件地在RestApplicationContextTest中包含定義,但我無法使其正常工作。 我把它留給以后參考。
<?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"><display-name>Project Student Webservice</display-name><context-param><param-name>contextClass</param-name><param-value>org.springframework.web.context.support.AnnotationConfigWebApplicationContext</param-value></context-param><context-param><param-name>contextConfigLocation</param-name><param-value>com.invariantproperties.sandbox.student.webservice.server.config.RestApplicationContextcom.invariantproperties.sandbox.student.webservice.server.config.RestApplicationContextTest</param-value></context-param><listener><listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></listener><servlet><servlet-name>REST dispatcher</servlet-name><servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class><init-param><param-name>spring.profiles.active</param-name><param-value>test</param-value></init-param></servlet><servlet-mapping><servlet-name>REST dispatcher</servlet-name><url-pattern>/rest/*</url-pattern></servlet-mapping> </web-app>單元測試
單元測試很簡單。
public class CourseResourceTest {private Course physics = new Course();private Course mechanics = new Course();@Beforepublic void init() {physics.setId(1);physics.setName("physics");physics.setUuid(UUID.randomUUID().toString());mechanics.setId(1);mechanics.setName("mechanics");mechanics.setUuid(UUID.randomUUID().toString());}@Testpublic void testFindAllCourses() {final List<Course> expected = Arrays.asList(physics);final CourseService service = Mockito.mock(CourseService.class);when(service.findAllCourses()).thenReturn(expected);final CourseResource resource = new CourseResource(service);final Response response = resource.findAllCourses();assertEquals(200, response.getStatus());final Course[] actual = (Course[]) response.getEntity();assertEquals(expected.size(), actual.length);assertNull(actual[0].getId());assertEquals(expected.get(0).getName(), actual[0].getName());assertEquals(expected.get(0).getUuid(), actual[0].getUuid());}@Testpublic void testFindAllCoursesEmpty() {final List<Course> expected = new ArrayList<>();final CourseService service = Mockito.mock(CourseService.class);when(service.findAllCourses()).thenReturn(expected);final CourseResource resource = new CourseResource(service);final Response response = resource.findAllCourses();assertEquals(200, response.getStatus());final Course[] actual = (Course[]) response.getEntity();assertEquals(0, actual.length);}@Testpublic void testFindAllCoursesFailure() {final CourseService service = Mockito.mock(CourseService.class);when(service.findAllCourses()).thenThrow(new UnitTestException();final CourseResource resource = new CourseResource(service);final Response response = resource.findAllCourses();assertEquals(500, response.getStatus());}@Testpublic void testGetCourse() {final Course expected = physics;final CourseService service = Mockito.mock(CourseService.class);when(service.findCourseByUuid(expected.getUuid())).thenReturn(expected);final CourseResource resource = new CourseResource(service);final Response response = resource.getCourse(expected.getUuid());assertEquals(200, response.getStatus());final Course actual = (Course) response.getEntity();assertNull(actual.getId());assertEquals(expected.getName(), actual.getName());assertEquals(expected.getUuid(), actual.getUuid());}@Testpublic void testGetCourseMissing() {final CourseService service = Mockito.mock(CourseService.class);when(service.findCourseByUuid(physics.getUuid())).thenThrow(new ObjectNotFoundException(physics.getUuid()));final CourseResource resource = new CourseResource(service);final Response response = resource.getCourse(physics.getUuid());assertEquals(404, response.getStatus());}@Testpublic void testGetCourseFailure() {final CourseService service = Mockito.mock(CourseService.class);when(service.findCourseByUuid(physics.getUuid())).thenThrow(new UnitTestException();final CourseResource resource = new CourseResource(service);final Response response = resource.getCourse(physics.getUuid());assertEquals(500, response.getStatus());}@Testpublic void testCreateCourse() {final Course expected = physics;final Name name = new Name();name.setName(expected.getName());final CourseService service = Mockito.mock(CourseService.class);when(service.createCourse(name.getName())).thenReturn(expected);final CourseResource resource = new CourseResource(service);final Response response = resource.createCourse(name);assertEquals(201, response.getStatus());final Course actual = (Course) response.getEntity();assertNull(actual.getId());assertEquals(expected.getName(), actual.getName());}@Testpublic void testCreateCourseBlankName() {final Course expected = physics;final Name name = new Name();final CourseService service = Mockito.mock(CourseService.class);final CourseResource resource = new CourseResource(service);final Response response = resource.createCourse(name);assertEquals(400, response.getStatus());}/*** Test handling when the course can't be created for some reason. For now* the service layer just returns a null value - it should throw an* appropriate exception.*/@Testpublic void testCreateCourseProblem() {final Course expected = physics;final Name name = new Name();name.setName(expected.getName());final CourseService service = Mockito.mock(CourseService.class);when(service.createCourse(name.getName())).thenReturn(null);final CourseResource resource = new CourseResource(service);final Response response = resource.createCourse(name);assertEquals(500, response.getStatus());}@Testpublic void testCreateCourseFailure() {final Course expected = physics;final Name name = new Name();name.setName(expected.getName());final CourseService service = Mockito.mock(CourseService.class);when(service.createCourse(name.getName())).thenThrow(new UnitTestException();final CourseResource resource = new CourseResource(service);final Response response = resource.createCourse(name);assertEquals(500, response.getStatus());}@Testpublic void testUpdateCourse() {final Course expected = physics;final Name name = new Name();name.setName(mechanics.getName());final Course updated = new Course();updated.setId(expected.getId());updated.setName(mechanics.getName());updated.setUuid(expected.getUuid());final CourseService service = Mockito.mock(CourseService.class);when(service.findCourseByUuid(expected.getUuid())).thenReturn(expected);when(service.updateCourse(expected, name.getName())).thenReturn(updated);final CourseResource resource = new CourseResource(service);final Response response = resource.updateCourse(expected.getUuid(),name);assertEquals(200, response.getStatus());final Course actual = (Course) response.getEntity();assertNull(actual.getId());assertEquals(mechanics.getName(), actual.getName());assertEquals(expected.getUuid(), actual.getUuid());}/*** Test handling when the course can't be updated for some reason. For now* the service layer just returns a null value - it should throw an* appropriate exception.*/@Testpublic void testUpdateCourseProblem() {final Course expected = physics;final Name name = new Name();name.setName(expected.getName());final CourseService service = Mockito.mock(CourseService.class);when(service.updateCourse(expected, name.getName())).thenReturn(null);final CourseResource resource = new CourseResource(service);final Response response = resource.createCourse(name);assertEquals(500, response.getStatus());}@Testpublic void testUpdateCourseFailure() {final Course expected = physics;final Name name = new Name();name.setName(expected.getName());final CourseService service = Mockito.mock(CourseService.class);when(service.updateCourse(expected, name.getName())).thenThrow(new UnitTestException();final CourseResource resource = new CourseResource(service);final Response response = resource.createCourse(name);assertEquals(500, response.getStatus());}@Testpublic void testDeleteCourse() {final Course expected = physics;final CourseService service = Mockito.mock(CourseService.class);doNothing().when(service).deleteCourse(expected.getUuid());final CourseResource resource = new CourseResource(service);final Response response = resource.deleteCourse(expected.getUuid());assertEquals(204, response.getStatus());}@Testpublic void testDeleteCourseMissing() {final Course expected = physics;final Name name = new Name();name.setName(expected.getName());final CourseService service = Mockito.mock(CourseService.class);doThrow(new ObjectNotFoundException(expected.getUuid())).when(service).deleteCourse(expected.getUuid());final CourseResource resource = new CourseResource(service);final Response response = resource.deleteCourse(expected.getUuid());assertEquals(204, response.getStatus());}@Testpublic void testDeleteCourseFailure() {final Course expected = physics;final CourseService service = Mockito.mock(CourseService.class);doThrow(new UnitTestException()).when(service).deleteCourse(expected.getUuid());final CourseResource resource = new CourseResource(service);final Response response = resource.deleteCourse(expected.getUuid());assertEquals(500, response.getStatus());} }整合測試
問題: REST服務器集成測試是否應該使用實時數據庫?
答:這是一個技巧問題。 我們都需要。
總體架構包含三個Maven模塊。 我們前面介紹了student-ws-client,今天介紹了Student-ws-server。 每個都創建一個.jar文件。 第三個模塊-student-ws-webapp-創建實際的.war文件。 學生-ws-服務器模塊的集成測試應使用虛擬服務層,而學生-ws-webapp模塊的集成測試應使用完整堆棧。
我們從集成測試開始,該集成測試反映了客戶端模塊中的單元測試。
public class CourseRestServerIntegrationTest {CourseRestClient client = new CourseRestClientImpl("http://localhost:8080/rest/course/");@Testpublic void testGetAll() throws IOException {Course[] courses = client.getAllCourses();assertNotNull(courses);}@Test(expected = ObjectNotFoundException.class)public void testUnknownCourse() throws IOException {client.getCourse("missing");}@Testpublic void testLifecycle() throws IOException {final String physicsName = "Physics 201";final Course expected = client.createCourse(physicsName);assertEquals(physicsName, expected.getName());final Course actual1 = client.getCourse(expected.getUuid());assertEquals(physicsName, actual1.getName());final Course[] courses = client.getAllCourses();assertTrue(courses.length > 0);final String mechanicsName = "Newtonian Mechanics 201";final Course actual2 = client.updateCourse(actual1.getUuid(),mechanicsName);assertEquals(mechanicsName, actual2.getName());client.deleteCourse(actual1.getUuid());try {client.getCourse(expected.getUuid());fail("should have thrown exception");} catch (ObjectNotFoundException e) {// do nothing}} }我們還需要一個虛擬服務類,該類可以實現足以支持我們的集成測試的功能。
public class DummyCourseService implements CourseService {private Map cache = Collections.synchronizedMap(new HashMap<String, Course>());public List<Course> findAllCourses() {return new ArrayList(cache.values());}public Course findCourseById(Integer id) {throw new ObjectNotFoundException(null); }public Course findCourseByUuid(String uuid) {if (!cache.containsKey(uuid)) {throw new ObjectNotFoundException(uuid); }return cache.get(uuid);}public Course createCourse(String name) {Course course = new Course();course.setUuid(UUID.randomUUID().toString());course.setName(name);cache.put(course.getUuid(), course);return course;}public Course updateCourse(Course oldCourse, String name) {if (!cache.containsKey(oldCourse.getUuid())) {throw new ObjectNotFoundException(oldCourse.getUuid()); }Course course = cache.get(oldCourse.getUuid());course.setUuid(UUID.randomUUID().toString());course.setName(name);return course; }public void deleteCourse(String uuid) {if (cache.containsKey(uuid)) {cache.remove(uuid);}} }pom.xml
pom.xml文件應包含一個用于運行嵌入式碼頭或tomcat服務器的插件。 作為集成測試的一部分,高級用戶可以旋轉和拆除嵌入式服務器-請參閱更新。
<build><plugins><!-- Run the application using "mvn jetty:run" --><plugin><groupId>org.mortbay.jetty</groupId><artifactId>maven-jetty-plugin</artifactId><version>6.1.16</version> <!-- ancient! --><configuration><!-- Log to the console. --><requestLog implementation="org.mortbay.jetty.NCSARequestLog"><!-- This doesn't do anything for Jetty, but is a workaround for a Maven bug that prevents the requestLog from being set. --><append>true</append></requestLog><webAppConfig><contextPath>/</contextPath><extraClasspath>${basedir}/target/test-classes/</extraClasspath></webAppConfig></configuration></plugin></plugins> </build>更新資料
經過更多研究之后,我進行了配置以在集成測試期間設置和拆除碼頭服務器。 此配置使用非標準端口,因此我們無需關閉同時運行的另一個碼頭或tomcat實例即可運行它。
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"><build><plugins><!-- Run the application using "mvn jetty:run" --><plugin><groupId>org.eclipse.jetty</groupId><artifactId>jetty-maven-plugin</artifactId><version>9.1.0.v20131115</version><configuration><webApp><extraClasspath>${basedir}/target/test-classes/</extraClasspath></webApp><scanIntervalSeconds>10</scanIntervalSeconds><stopPort>18005</stopPort><stopKey>STOP</stopKey><systemProperties><systemProperty><name>jetty.port</name><value>18080</value></systemProperty></systemProperties></configuration><executions><execution><id>start-jetty</id><phase>pre-integration-test</phase><goals><goal>run</goal></goals><configuration><scanIntervalSeconds>0</scanIntervalSeconds><daemon>true</daemon></configuration></execution><execution><id>stop-jetty</id><phase>post-integration-test</phase><goals><goal>stop</goal></goals></execution></executions></plugin></plugins></build> </project>源代碼
- 可從http://code.google.com/p/invariant-properties-blog/source/browse/student/student-webservices/student-ws-server獲取源代碼。
翻譯自: https://www.javacodegeeks.com/2014/01/project-student-webservice-server-with-jersey.html
jersey put 服務
總結
以上是生活随笔為你收集整理的jersey put 服务_项目学生:带有Jersey的Web服务服务器的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 怎么提前备案异地就医(怎么提前备案)
- 下一篇: 3d电影播放软件安卓(3d安卓电影)