随笔分类 -  Java

上一页 1 2 3 4 5 6 7 8 9 下一页
Jersey(1.19.1) - Building Responses
摘要:Sometimes it is necessary to return additional information in response to a HTTP request. Such information may be built and returned using Response an 阅读全文
posted @ 2016-04-16 15:40 huey2672 阅读(246) 评论(0) 推荐(0)
Jersey(1.19.1) - Representations and Java Types
摘要:Previous sections on @Produces and @Consumes referred to MIME media types of representations and showed resource methods that consume and produce the 阅读全文
posted @ 2016-04-16 15:35 huey2672 阅读(231) 评论(0) 推荐(0)
Jersey(1.19.1) - Extracting Request Parameters
摘要:Parameters of a resource method may be annotated with parameter-based annotations to extract information from a request. A previous example presented 阅读全文
posted @ 2016-04-16 11:47 huey2672 阅读(281) 评论(0) 推荐(0)
Jersey(1.19.1) - Deploying a RESTful Web Service
摘要:JAX-RS provides a deployment agnostic abstract class Application for declaring root resource and provider classes, and root resource and provider sing 阅读全文
posted @ 2016-04-16 01:11 huey2672 阅读(336) 评论(0) 推荐(0)
Jersey(1.19.1) - Root Resource Classes
摘要:Root resource classes are POJOs (Plain Old Java Objects) that are annotated with @Path have at least one method annotated with @Path or a resource met 阅读全文
posted @ 2016-04-15 14:01 huey2672 阅读(419) 评论(0) 推荐(0)
Jersey(1.19.1) - Hello World, Get started with Jersey using the embedded Grizzly server
摘要:Maven Dependencies The following Maven dependencies need to be added to the pom: Creating a root resource Create the following Java class in your proj 阅读全文
posted @ 2016-04-13 22:50 huey2672 阅读(364) 评论(0) 推荐(0)
Jersey(1.19.1) - Hello World, Get started with a Web application
摘要:1. Maven Dependency <properties> <jersey.version>1.19.1</jersey.version> </properties> <dependencies> <dependency> <groupId>com.sun.jersey</groupId> < 阅读全文
posted @ 2016-04-10 23:01 huey2672 阅读(530) 评论(0) 推荐(0)
Eclipse - 安装 run-jetty-run 插件及使用 jrebel 热部署
摘要:1. 下载 run-jetty-run  2. 解压至 Eclipse/MyEclipse 安装目录下的 plugin 3. 右键 web 项工程,选择 Run Configurations,选择 Jetty Webapp, 然后点击左上方的新建按钮。可以修改 Port 和 Context 参数。点 阅读全文
posted @ 2016-03-15 15:44 huey2672 阅读(813) 评论(0) 推荐(0)
MyBatis(3.2.3) - Cache
摘要:Caching data that is loaded from the database is a common requirement for many applications to improve their performance. MyBatis provides in-built su 阅读全文
posted @ 2016-03-02 10:27 huey2672 阅读(257) 评论(0) 推荐(0)
MyBatis(3.2.3) - Custom ResultSet processing using ResultSetHandler
摘要:MyBatis provides great support with plenty of options for mapping the query results to JavaBeans. But sometimes, we may come across scenarios where we 阅读全文
posted @ 2016-03-01 17:52 huey2672 阅读(2480) 评论(0) 推荐(0)
MyBatis(3.2.3) - Paginated ResultSets using RowBounds
摘要:Sometimes, we may need to work with huge volumes of data, such as with tables with millions of records. Loading all these records may not be possible 阅读全文
posted @ 2016-03-01 17:10 huey2672 阅读(647) 评论(0) 推荐(0)
MyBatis(3.2.3) - Multiple results as a map
摘要:If we have a mapped statement that returns multiple rows and we want the results in a HashMap with some property value as the key and the resulting ob 阅读全文
posted @ 2016-03-01 17:05 huey2672 阅读(517) 评论(0) 推荐(0)
MyBatis(3.2.3) - Passing multiple input parameters
摘要:MyBatis's mapped statements have the parameterType attribute to specify the type of input parameter. If we want to pass multiple input parameters to a 阅读全文
posted @ 2016-03-01 17:00 huey2672 阅读(587) 评论(0) 推荐(0)
MyBatis(3.2.3) - Handling the CLOB/BLOB types
摘要:MyBatis provides built-in support for mapping CLOB/BLOB type columns. Assume we have the following table to store the Students and Tutors photographs 阅读全文
posted @ 2016-03-01 16:45 huey2672 阅读(1250) 评论(0) 推荐(0)
MyBatis(3.2.3) - Handling enumeration types
摘要:MyBatis supports persisting enum type properties out of the box. Assume that the STUDENTS table has a column gender of the type varchar to store eithe 阅读全文
posted @ 2016-03-01 16:33 huey2672 阅读(392) 评论(0) 推荐(0)
MyBatis(3.2.3) - Dynamic SQL
摘要:Sometimes, static SQL queries may not be sufficient for application requirements. We may have to build queries dynamically, based on some criteria.For 阅读全文
posted @ 2016-03-01 16:05 huey2672 阅读(1442) 评论(0) 推荐(0)
MyBatis(3.2.3) - One-to-many mapping
摘要:In the sample domain model, a tutor can teach one or more courses. This means that there is a one-to-many relationship between the tutor and course. W 阅读全文
posted @ 2016-03-01 14:30 huey2672 阅读(1589) 评论(0) 推荐(1)
MyBatis(3.2.3) - One-to-one mapping using nested Select
摘要:We can get Student along with the Address details using a nested Select query as follows: <resultMap type="Address" id="AddressResult"> <id property=" 阅读全文
posted @ 2016-03-01 14:13 huey2672 阅读(382) 评论(0) 推荐(0)
MyBatis(3.2.3) - One-to-one mapping using nested ResultMap
摘要:We can get Student along with the Address details using a nested ResultMap as follows: <resultMap type="Address" id="AddressResult"> <id property="add 阅读全文
posted @ 2016-03-01 11:51 huey2672 阅读(952) 评论(0) 推荐(0)
MyBatis(3.2.3) - ResultMaps: Extending ResultMaps
摘要:ResultMaps are used to map the SQL SELECT statement's results to JavaBeans properties. We can define ResultMaps and reference this resultMap query fro 阅读全文
posted @ 2016-03-01 11:07 huey2672 阅读(325) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 下一页