`
woshixushigang
  • 浏览: 562962 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类

spring mvc RESTful url

 
阅读更多
详细讲解spring rest使用,简单例子如下:
  1. /blog/ 1 HTTP GET => 得到id = 1 的blog
  2. /blog/1 HTTP DELETE => 删除 id = 1 的blog
  3. /blog/1 HTTP PUT => 更新id = 1 的blog
  4. /blog HTTP POST => 新增BLOG

首先,我们带着如下 个问题 查看本文。
1. 如何在java构造没有扩展名的RESTful url,如 /forms/1,而不是 /forms/1.do

2. 由于我们要构造没有扩展名的url本来是处理静态资源的容器映射的,现在被我们的spring占用了,冲突怎么解决?

3. 浏览器的form标签不支持提交delete,put请求,如何曲线解决?

 

spring mvc rest 实现


spring mvc的resturl是通过@RequestMapping 及@PathVariable annotation提供的,通过如@RequestMapping(value="/blog/{id}",method=RequestMethod.DELETE)即可处理/blog/1 的delete请求.

  1. @RequestMapping (value= "/blog/{id}" ,method=RequestMethod.DELETE)
  2. public ModelAndView delete( @PathVariable Long id,HttpServletRequest request,HttpServletResponse response) {
  3. blogManager.removeById(id);
  4. return new ModelAndView(LIST_ACTION);
  5. }
@RequestMapping(value="/blog/{id}",method=RequestMethod.DELETE)
public ModelAndView delete(@PathVariable Long id,HttpServletRequest request,HttpServletResponse response) {
	blogManager.removeById(id);
	return new ModelAndView(LIST_ACTION);
}

 

@RequestMapping @PathVariable如果URL中带参数,则配合使用,如

  1. @RequestMapping (value= "/blog/{blogId}/message/{msgId}" ,method=RequestMethod.DELETE)
  2. public ModelAndView delete( @PathVariable ( "blogId" ) Long blogId, @PathVariable ( "msgId" ) Long msgId,HttpServletRequest request,HttpServletResponse response) {
  3. }
@RequestMapping(value="/blog/{blogId}/message/{msgId}",method=RequestMethod.DELETE)
public ModelAndView delete(@PathVariable("blogId") Long blogId,@PathVariable("msgId") Long msgId,HttpServletRequest request,HttpServletResponse response) {
}

 

spring rest配置指南

1. spring mvc web.xml配置

  1. <!-- 该servlet为tomcat,jetty等容器提供,将静态资源映射从/改为/static/目录,如原来访问 http://localhost/foo.css ,现在http://localhost/static/foo.css -->
  2. < servlet-mapping >
  3. < servlet-name > default </ servlet-name >
  4. < url-pattern > /static/* </ url-pattern >
  5. </ servlet-mapping >
  6. < servlet >
  7. < servlet-name > springmvc </ servlet-name >
  8. < servlet-class > org.springframework.web.servlet.DispatcherServlet </ servlet-class >
  9. < load-on-startup > 1 </ load-on-startup >
  10. </ servlet >
  11. <!-- URL重写filter,用于将访问静态资源http://localhost/foo.css 转为http://localhost/static/foo.css -->
  12. < filter >
  13. < filter-name > UrlRewriteFilter </ filter-name >
  14. < filter-class > org.tuckey.web.filters.urlrewrite.UrlRewriteFilter </ filter-class >
  15. < init-param >
  16. < param-name > confReloadCheckInterval </ param-name >
  17. < param-value > 60 </ param-value >
  18. </ init-param >
  19. < init-param >
  20. < param-name > logLevel </ param-name >
  21. < param-value > DEBUG </ param-value >
  22. </ init-param >
  23. </ filter >
  24. < filter-mapping >
  25. < filter-name > UrlRewriteFilter </ filter-name >
  26. < url-pattern > /* </ url-pattern >
  27. </ filter-mapping >
  28. <!-- 覆盖default servlet的/, springmvc servlet将处理原来处理静态资源的映射 -->
  29. < servlet-mapping >
  30. < servlet-name > springmvc </ servlet-name >
  31. < url-pattern > / </ url-pattern >
  32. </ servlet-mapping >
  33. <!-- 浏览器不支持put,delete等method,由该filter将/blog?_method=delete转换为标准的http delete方法 -->
  34. < filter >
  35. < filter-name > HiddenHttpMethodFilter </ filter-name >
  36. < filter-class > org.springframework.web.filter.HiddenHttpMethodFilter </ filter-class >
  37. </ filter >
  38. < filter-mapping >
  39. < filter-name > HiddenHttpMethodFilter </ filter-name >
  40. < servlet-name > springmvc </ servlet-name >
  41. </ filter-mapping >
	<!-- 该servlet为tomcat,jetty等容器提供,将静态资源映射从/改为/static/目录,如原来访问 http://localhost/foo.css ,现在http://localhost/static/foo.css -->
	<servlet-mapping>
		<servlet-name>default</servlet-name>
		<url-pattern>/static/*</url-pattern>
	</servlet-mapping>
	<servlet>
	    <servlet-name>springmvc</servlet-name>
	    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
	    <load-on-startup>1</load-on-startup>
	</servlet>
	
	<!-- URL重写filter,用于将访问静态资源http://localhost/foo.css 转为http://localhost/static/foo.css -->
	<filter>
		<filter-name>UrlRewriteFilter</filter-name>
		<filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
		<init-param>
		    	<param-name>confReloadCheckInterval</param-name>
		    	<param-value>60</param-value>
    		</init-param>
		<init-param>
            		<param-name>logLevel</param-name>
            		<param-value>DEBUG</param-value>
        	</init-param>    	
	</filter>
	<filter-mapping>
		<filter-name>UrlRewriteFilter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>
	
	<!-- 覆盖default servlet的/, springmvc servlet将处理原来处理静态资源的映射 -->
	<servlet-mapping>
	    <servlet-name>springmvc</servlet-name>
	    <url-pattern>/</url-pattern>
	</servlet-mapping>
	
	<!-- 浏览器不支持put,delete等method,由该filter将/blog?_method=delete转换为标准的http delete方法 -->
	<filter>
		<filter-name>HiddenHttpMethodFilter</filter-name>
		<filter-class>org.springframework.web.filter.HiddenHttpMethodFilter</filter-class>
	</filter>
	
	<filter-mapping>
		<filter-name>HiddenHttpMethodFilter</filter-name>
		<servlet-name>springmvc</servlet-name>
	</filter-mapping>

 

 

2. webapp/WEB-INF/springmvc-servlet.xml配置,使用如下两个class激活@RequestMapping annotation

  1. <bean class = "org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping" />
  2. <bean class = "org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" />
    <bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping"/>
    <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"/>

 

完整配置

  1. <beans default -autowire= "byName" >
  2. <!-- 自动搜索@Controller 标注的类 -->
  3. <context:component-scan base-package = "com.**.controller" />
  4. <bean class = "org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping" />
  5. <bean class = "org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" />
  6. <!-- Default ViewResolver -->
  7. <bean id="viewResolver" class = "org.springframework.web.servlet.view.InternalResourceViewResolver" >
  8. <property name="viewClass" value= "org.springframework.web.servlet.view.JstlView" />
  9. <property name="prefix" value= "/pages" />
  10. <property name="suffix" value= ".jsp" ></property>
  11. </bean>
  12. <bean id="messageSource" class = "org.springframework.context.support.ResourceBundleMessageSource" p:basename= "i18n/messages" />
  13. <!-- Mapping exception to the handler view -->
  14. <bean id="exceptionResolver" class = "org.springframework.web.servlet.handler.SimpleMappingExceptionResolver" >
  15. <!-- to /commons/error.jsp -->
  16. <property name="defaultErrorView" value= "/commons/error" />
  17. <property name="exceptionMappings" >
  18. <props>
  19. </props>
  20. </property>
  21. </bean>
  22. </beans>
<beans default-autowire="byName"   >

	<!-- 自动搜索@Controller标注的类 -->
	<context:component-scan base-package="com.**.controller"/>
	
    <bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping"/>

    <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"/>

    <!-- Default ViewResolver -->
    <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>
        <property name="prefix" value="/pages"/>
        <property name="suffix" value=".jsp"></property>
    </bean>
    
    <bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource" p:basename="i18n/messages"/>

    <!-- Mapping exception to the handler view -->
    <bean id="exceptionResolver" class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver">
    	<!-- to /commons/error.jsp -->
        <property name="defaultErrorView" value="/commons/error"/>
        <property name="exceptionMappings">
            <props>
            </props>
        </property>
    </bean>
        
</beans>

 

 

3. Controller编写

  1. /**
  2. * @RequestMapping("/userinfo") 具有层次关系,方法级的将在类一级@RequestMapping之一,
  3. * 如下面示例, 访问方法级别的@RequestMapping("/new"),则URL为 /userinfo/new
  4. */
  5. @Controller
  6. @RequestMapping ( "/userinfo" )
  7. public class UserInfoController extends BaseSpringController{
  8. //默认多列排序,example: username desc,createTime asc
  9. protected static final String DEFAULT_SORT_COLUMNS = null ;
  10. private UserInfoManager userInfoManager;
  11. private final String LIST_ACTION = "redirect:/userinfo" ;
  12. /**
  13. * 通过spring自动注入
  14. **/
  15. public void setUserInfoManager(UserInfoManager manager) {
  16. this .userInfoManager = manager;
  17. }
  18. /** 列表 */
  19. @RequestMapping
  20. public ModelAndView index(HttpServletRequest request,HttpServletResponse response,UserInfo userInfo) {
  21. PageRequest<Map> pageRequest = newPageRequest(request,DEFAULT_SORT_COLUMNS);
  22. //pageRequest.getFilters(); //add custom filters
  23. Page page = this .userInfoManager.findByPageRequest(pageRequest);
  24. savePage(page,pageRequest,request);
  25. return new ModelAndView( "/userinfo/list" , "userInfo" ,userInfo);
  26. }
  27. /** 进入新增 */
  28. @RequestMapping (value= "/new" )
  29. public ModelAndView _new(HttpServletRequest request,HttpServletResponse response,UserInfo userInfo) throws Exception {
  30. return new ModelAndView( "/userinfo/new" , "userInfo" ,userInfo);
  31. }
  32. /** 显示 */
  33. @RequestMapping (value= "/{id}" )
  34. public ModelAndView show( @PathVariable Long id,HttpServletRequest request,HttpServletResponse response) throws Exception {
  35. UserInfo userInfo = (UserInfo)userInfoManager.getById(id);
  36. return new ModelAndView( "/userinfo/show" , "userInfo" ,userInfo);
  37. }
  38. /** 编辑 */
  39. @RequestMapping (value= "/{id}/edit" )
  40. public ModelAndView edit( @PathVariable Long id,HttpServletRequest request,HttpServletResponse response) throws Exception {
  41. UserInfo userInfo = (UserInfo)userInfoManager.getById(id);
  42. return new ModelAndView( "/userinfo/edit" , "userInfo" ,userInfo);
  43. }
  44. /** 保存新增 */
  45. @RequestMapping (method=RequestMethod.POST)
  46. public ModelAndView create(HttpServletRequest request,HttpServletResponse response,UserInfo userInfo) throws Exception {
  47. userInfoManager.save(userInfo);
  48. return new ModelAndView(LIST_ACTION);
  49. }
  50. /** 保存更新 */
  51. @RequestMapping (value= "/{id}" ,method=RequestMethod.PUT)
  52. public ModelAndView update( @PathVariable Long id,HttpServletRequest request,HttpServletResponse response) throws Exception {
  53. UserInfo userInfo = (UserInfo)userInfoManager.getById(id);
  54. bind(request,userInfo);
  55. userInfoManager.update(userInfo);
  56. return new ModelAndView(LIST_ACTION);
  57. }
  58. /** 删除 */
  59. @RequestMapping (value= "/{id}" ,method=RequestMethod.DELETE)
  60. public ModelAndView delete( @PathVariable Long id,HttpServletRequest request,HttpServletResponse response) {
  61. userInfoManager.removeById(id);
  62. return new ModelAndView(LIST_ACTION);
  63. }
  64. /** 批量删除 */
  65. @RequestMapping (method=RequestMethod.DELETE)
  66. public ModelAndView batchDelete( @RequestParam ( "items" ) Long[] items,HttpServletRequest request,HttpServletResponse response) {
  67. for ( int i = 0 ; i < items.length; i++) {
  68. userInfoManager.removeById(items[i]);
  69. }
  70. return new ModelAndView(LIST_ACTION);
  71. }
  72. }
/**
 * @RequestMapping("/userinfo") 具有层次关系,方法级的将在类一级@RequestMapping之一,
 * 如下面示例, 访问方法级别的@RequestMapping("/new"),则URL为 /userinfo/new
 */
@Controller
@RequestMapping("/userinfo")
public class UserInfoController extends BaseSpringController{
	//默认多列排序,example: username desc,createTime asc
	protected static final String DEFAULT_SORT_COLUMNS = null; 
	
	private UserInfoManager userInfoManager;
	
	private final String LIST_ACTION = "redirect:/userinfo";
	
	/** 
	 * 通过spring自动注入
	 **/
	public void setUserInfoManager(UserInfoManager manager) {
		this.userInfoManager = manager;
	}
	
	/** 列表 */
	@RequestMapping
	public ModelAndView index(HttpServletRequest request,HttpServletResponse response,UserInfo userInfo) {
		PageRequest<Map> pageRequest = newPageRequest(request,DEFAULT_SORT_COLUMNS);
		//pageRequest.getFilters(); //add custom filters
		
		Page page = this.userInfoManager.findByPageRequest(pageRequest);
		savePage(page,pageRequest,request);
		return new ModelAndView("/userinfo/list","userInfo",userInfo);
	}
	
	/** 进入新增 */
	@RequestMapping(value="/new")
	public ModelAndView _new(HttpServletRequest request,HttpServletResponse response,UserInfo userInfo) throws Exception {
		return new ModelAndView("/userinfo/new","userInfo",userInfo);
	}
	
	/** 显示 */
	@RequestMapping(value="/{id}")
	public ModelAndView show(@PathVariable Long id,HttpServletRequest request,HttpServletResponse response) throws Exception {
		UserInfo userInfo = (UserInfo)userInfoManager.getById(id);
		return new ModelAndView("/userinfo/show","userInfo",userInfo);
	}
	
	/** 编辑 */
	@RequestMapping(value="/{id}/edit")
	public ModelAndView edit(@PathVariable Long id,HttpServletRequest request,HttpServletResponse response) throws Exception {
		UserInfo userInfo = (UserInfo)userInfoManager.getById(id);
		return new ModelAndView("/userinfo/edit","userInfo",userInfo);
	}
	
	/** 保存新增 */
	@RequestMapping(method=RequestMethod.POST)
	public ModelAndView create(HttpServletRequest request,HttpServletResponse response,UserInfo userInfo) throws Exception {
		userInfoManager.save(userInfo);
		return new ModelAndView(LIST_ACTION);
	}
	
	/** 保存更新 */
	@RequestMapping(value="/{id}",method=RequestMethod.PUT)
	public ModelAndView update(@PathVariable Long id,HttpServletRequest request,HttpServletResponse response) throws Exception {
		UserInfo userInfo = (UserInfo)userInfoManager.getById(id);
		bind(request,userInfo);
		userInfoManager.update(userInfo);
		return new ModelAndView(LIST_ACTION);
	}
	
	/** 删除 */
	@RequestMapping(value="/{id}",method=RequestMethod.DELETE)
	public ModelAndView delete(@PathVariable Long id,HttpServletRequest request,HttpServletResponse response) {
		userInfoManager.removeById(id);
		return new ModelAndView(LIST_ACTION);
	}

	/** 批量删除 */
	@RequestMapping(method=RequestMethod.DELETE)
	public ModelAndView batchDelete(@RequestParam("items") Long[] items,HttpServletRequest request,HttpServletResponse response) {
		
		for(int i = 0; i < items.length; i++) {
			
			userInfoManager.removeById(items[i]);
		}
		return new ModelAndView(LIST_ACTION);
	}
	
}

 

 

上面是rapid-framework新版本生成器生成的代码,以后也将应用此规则,rest url中增删改查等基本方法与Controller的方法映射规则

Java代码
  1. /userinfo => index()
  2. /userinfo/new => _new()
  3. /userinfo/{id} => show()
  4. /userinfo/{id}/edit => edit()
  5. /userinfo POST => create()
  6. /userinfo/{id} PUT => update()
  7. /userinfo/{id} DELETE => delete()
  8. /userinfo DELETE => batchDelete()
	/userinfo 			=> index()
	/userinfo/new		=> _new()
	/userinfo/{id}		=> show()
	/userinfo/{id}/edit 		=> edit()
	/userinfo 	POST		=> create()
	/userinfo/{id} 	PUT	=> update()
	/userinfo/{id} 	DELETE	=> delete()
	/userinfo 	DELETE		=> batchDelete()

注(不使用 /userinfo/add => add() 方法是由于add这个方法会被maxthon浏览器当做广告链接过滤掉,因为包含ad字符)

 

4. jsp 编写

Html代码
  1. < form:form action = "${ctx}/userinfo/${userInfo.userId}" method = "put" >
  2. </ form:form >
<form:form action="${ctx}/userinfo/${userInfo.userId}" method="put">
</form:form>

生成的html内容如下, 生成一个hidden的_method=put,并于web.xml中的HiddenHttpMethodFilter配合使用,在服务端将post请求改为put请求

Java代码
  1. <form id= "userInfo" action= "/springmvc_rest_demo/userinfo/2" method= "post" >
  2. <input type="hidden" name= "_method" value= "put" />
  3. </form>
<form id="userInfo" action="/springmvc_rest_demo/userinfo/2" method="post">
	<input type="hidden" name="_method" value="put"/>
</form>

 

另外一种方法是你可以使用ajax发送put,delete请求.

 

5. 静态资源的URL重写

如上我们描述,现因为将default servlet映射至/static/的子目录,现我们访问静态资源将会带一个/static/前缀.

如 /foo.gif, 现在访问该文件将是 /static/foo.gif.
那如何避免这个前缀呢,那就是应用URL rewrite,现我们使用 http://tuckey.org/urlrewrite/ , 重写规则如下

 

Xml代码
  1. < urlrewrite >
  2. <!-- 访问jsp及jspx将不rewrite url,其它.js,.css,.gif等将重写,如 /foo.gif => /static/foo.gif -->
  3. < rule >
  4. < condition operator = "notequal" next = "and" type = "request-uri" > .*.jsp </ condition >
  5. < condition operator = "notequal" next = "and" type = "request-uri" > .*.jspx </ condition >
  6. < from > ^(/.*\..*)$ </ from >
  7. < to > /static$1 </ to >
  8. </ rule >
  9. </ urlrewrite >
分享到:
评论

相关推荐

    精通Spring MVC 4

    本书共计10章,分别介绍了快速搭建Spring Web应用、精通MVC结构、URL映射、文件上传与错误处理、创建Restful应用、保护应用、单元测试与验收测试、优化请求、将Web应用部署到云等内容,循序渐进地讲解了Spring MVC4...

    spring3 mvc restful freemarker jquery json

    最新spring3 mvc restful urlrewrite jquery json freemarker整合架构jar图片,欢迎下载: 说明比较少,群号:24172014,不懂来问,已懂讨论

    精通Spring MVC 4 [精校高清版](Geoffroy.Warin). pdf

    本书共计10章,分别介绍了快速搭建Spring Web应用、精通MVC结构、URL映射、文件上传与错误处理、创建Restful应用、保护应用、单元测试与验收测试、优化请求、将Web应用部署到云等内容,循序渐进地讲解了Spring MVC4...

    spring加载restful(文档+程序源码)

    spring加载restful(文档+程序源码) 通过REST风格体系架构,请求和响应都是基于资源表示的传输来构建的。资源是通过全局ID来标识的,这些ID一般使用的是一个统一资源标识符(URI)。客户端应用使用HTTP方法(如,...

    精通spring mvc 4

    本书共计10章,分别介绍了快速搭建Spring Web应用、精通MVC结构、URL映射、文件上传与错误处理、创建Restful应用、保护应用、单元测试与验收测试、优化请求、将Web应用部署到云等内容,循序渐进地讲解了Spring MVC4...

    精通SpringMVC(高清目录版含源码实例)

    本书共计10章,分别介绍了快速搭建Spring Web应用、精通MVC结构、URL映射、文件上传与错误处理、创建Restful应用、保护应用、单元测试与验收测试、优化请求、将Web应用部署到云等内容,循序渐进地讲解了Spring MVC4...

    spring mvc demo

    spring mvc demo,很全,ajax,restful url,表单校验等。

    awesome-spring:RESTful API和Spring MVC课程

    RESTful API & Spring MVC ThoughtWorks武汉办公室郑大晔校@2015,课程《RESTful API & Spring MVC》 ##Homework ####RESTful API (主要在BooksApi中返回Json数据即可) 获取指定用户的所有图书 为指定用户创建图书 #...

    spittr:RESTful API服务器,由Spring,Spring MVC,MyBatis基于Java 8,MySql,Redis实现

    概览spittr 该名字来源于《Spring 实战》一书,接口设计使用 restful 风格。该项目使用的技术:SpringSpring MVCMyBatis 3.4Spring-testJUnitRedisMySqlJWT配置数据库脚本:schema.sql 。根据需要更改 application....

    Spring3 MVC

    其资源中包括三个文档,仅供学习与参考。 1.spring3mvc真正入门资料 2.spring3.0MVC注解(附实例) 3.spring_3.0_应用springmvc_构造RESTful_URL_详细讲解

    基于SSM框架(SpringMVC + Spring + Mybatis)的图书管理系统,内附,教程,数据库脚本

    2 本项目springMVC框架采用了注解映射器,使用了RESTful风格的url对系统发起http请求,开发更灵活。 3 同时使用了了hibernate提供的校验框架,对客户端数据进行校验! 4 Mybati数据库DAO层采用的是Mapper代理开发方法...

    SpringMVC的相关问题.docx

    Spring MVC是Spring Framework的一个模块,它是基于MVC(Model-View-Controller)架构的轻量级Web框架。...支持RESTful风格的URL请求。 采用了松散耦合可插拔组件结构,比其他MVC框架更具扩展性和灵活性。

    基于SSM框架(SpringMVC + Spring + Mybatis)的图书管理系统数据库.rar

    2 本项目springMVC框架采用了注解映射器,使用了RESTful风格的url对系统发起http请求,开发更灵活。 3 同时使用了了hibernate提供的校验框架,对客户端数据进行校验! 4 Mybati数据库DAO层采用的是Mapper代理开发...

    瑞吉外卖项目的完整源代码

    通过Spring Boot框架的支持,可以轻松构建和管理RESTful API,定义资源的URL路径和相应的请求方法,使得前后端之间的交互更加简单和可靠。 前端技术:瑞吉外卖项目的前端界面通常使用HTML、CSS和JavaScript等技术...

    Picker:Spring MVC +Hibernate

    Picker的后台使用Spring MVC+hibernate+mysql,实现添加书籍,提问、做笔记,上传附件、照片,关注用户、关注问题,私信、好友动态,好友圈等功能。下面是功能交互图:#package介绍Controller层 .controller: 提供了...

    RESTful-AngularJS-Spring-JPA-Hibernate:AngularJS,Spring 4 RESTful,JPA2,用于公司管理应用程序(CMA)的Hibernate示例应用程序简化了解决方案

    这是一个使用AngularJS,Java 8,Spring 4 MVC,JPA2,Hibernate,Maven,Git,GitHub和Heroku创建的非常简单的Web应用程序。 它提供RESTful服务来创建,更新和查看单个公司及其各自所有者,还提供检索和列出存储在...

    ozonbookshop

    演示Spring MVC应用程序 我基于注释在框架Spring MVC帮助网络中开发了一个Web应用程序。 构造控制器来处理Web查询。 旨在根据RESTful体系结构设计应用程序的Web层。在JSP中使用了CSS样式的Tags,并在向用户发送的...

    django-vs-spring

    安全框架基于ACL模板框架缓存框架表单验证框架URL 映射(干净的 URL、RESTful URI) 是的是的HTML5 ? ? REST(将数据公开为 RESTful Web 服务) 是的是的移动支持? ? 脚手架工具不(?) 春之谷似乎也有一些用于 ...

Global site tag (gtag.js) - Google Analytics