求大神把这个spring mvc的项目 集成 sawgger进去 30C

求大神把这个spring mvc的项目 集成 sawgger进去项目

集成好了麻烦留下联系方式或连接

2个回答

https://github.com/songxiaojun/ 这是我的github 上面有ssm集成swagger 你可以去看下 忘采纳

u013083989
宋小俊要加油 回复CowBStruggler: https://github.com/songxiaojun/study-ssm
接近 2 年之前 回复
m0_37531066
CowBStruggler 你哪个项目看不懂呀老哥
接近 2 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
spring mvc 集成mongoDB项目 例子
spring mvc 集成mongoDB项目 例子
Spring MVC 集成JPA
简单实用的Spring集成Jpa实例,20分钟教会你
fastdfs - spring mvc 集成
java 集成 fastdfs - spring mvc 集成 java 集成 fastdfs - spring mvc 集成 java 集成 fastdfs - spring mvc 集成 java 集成 fastdfs - spring mvc 集成 java 集成 fastdfs - spring mvc 集成
spring mvc集成webservice
spring mvc集成webservicedemo
spring mvc集成redis
spring mvc集成redis,集成了mybaties,集成了jdbc,欢迎学习下载
spring mvc与mybatis的集成
spring mvc与mybatis的集成
spring mvc集成websocket
spring mvc集成websocket,无需xml配置,使用@ServerEndpoint注册一个websocket服务器路径就可在html页面用js与websocket_server建立连接,压缩包里附带了html页面,可以作为参考
jbpm5.4 spring mvc 集成
jbpm5.4 spring mvc 集成开发 Jetty maven JTA 事务等配置!
spring mvc集成redis2
spring mvc集成redis2
Json-RPC & Spring MVC 集成
Json-RPC 和Spring MVC 的集成实现,有一登录的例子。文件是一个Eclipse的动态web工程。直接导入eclipse就可以发布了。Tomcat需要5.5以上版本。
spring mvc hibernate集成
spring mvc hibernate集成 基础框架 c3p0 oracle
spring mvc集成
详细讲解如何使用maven构建spring mvc+mybatis应用
spring MVC的问题,求大神帮忙啊!!!
给出web.xml dispatcher-servlet.xml的配置信息rn[code=text]rnrn dispatcher rn rn rn dispatcherrn org.springframework.web.servlet.DispatcherServletrnrn 1rnrnrnrn dispatcherrn /rnrn rn rn rn index.jsprn rn rn[/code]rnrn[code=text]rnrn rn rn rn rn rn[/code]rnrnrn[code=java]package com.minx.crm.web.controller;rnrnimport org.springframework.stereotype.Controller;rnimport org.springframework.web.bind.annotation.RequestMapping;rnrnrn@Controllerrn@RequestMapping(value = "index")rnpublic class IndexController rn rn @RequestMapping(value = "say")rn public String sayHello() rn return "index";rn rn[/code]rnrn[img=https://img-bbs.csdn.net/upload/201407/30/1406682081_703482.jpg][/img]rnrn所有的信息都在上面 Spring已经放在tomcat的webapps文件夹下面 但是访问rnhttp://localhost:8080/Spring/index/say 就是404rnrn单独访问http://localhost:8080/Spring/index.jsp是可以的rnrn大神帮忙看看是哪里出问题了啊
Spring MVC问题,求大神进来看看
页面显示正常,但是控制台报错,实在不解,求大神看看rnrncontroller:rn[code=java]rn@RequestMapping("/id","/id/")rn public String index(@PathVariable String id,HttpSession session,Model model)rn User user = userService.getTemplate().selectOne("User.selectByIdOrDomain", id);rn if(user == null)rn return "error/404";rn rn return "home/home";rn rn[/code]rnrn报错:rn[code=java]rn[WARNING] /favicon.icornjavax.servlet.ServletException: Could not resolve view with name 'error/404' in servlet with name 'artvoi-web'rn at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1162)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:950)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)rn at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)rn at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)rn at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)rn at com.artvoi.web.filter.XssFilter.doFilter(XssFilter.java:25)rn at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)rn at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)rn at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)rn at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)rn at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)rn at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)rn at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)rn at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)rn at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)rn at org.mortbay.jetty.Server.handle(Server.java:326)rn at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)rn at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)rn at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)rn at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)rn at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)rn at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)rn at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)rn[/code]rnrn页面一切正常
spring mvc 整合问题.求大神指教!
2015-03-30 15:20:35 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failedrnjava.lang.IllegalStateException: CGLIB is required to process @Configuration classes. Either add CGLIB to the classpath or remove the following @Configuration bean definitions: [aspectJCachingConfiguration, springConfiguredConfiguration, aspectJAsyncConfiguration, aspectJTransactionManagementConfiguration, proxyCachingConfiguration, loadTimeWeavingConfiguration, proxyAsyncConfiguration, schedulingConfiguration, proxyTransactionManagementConfiguration, delegatingWebMvcConfiguration]rn at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:327)rn at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:222)rn at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:686)rn at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:625)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4772)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1069)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1719)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)rn at java.util.concurrent.FutureTask.run(FutureTask.java:266)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:745)rn** initialize...rn>>>>>>>>>>>>>>>>系统配置初始化开始.....rn三月 30, 2015 3:20:35 下午 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnjava.lang.IllegalStateException: CGLIB is required to process @Configuration classes. Either add CGLIB to the classpath or remove the following @Configuration bean definitions: [aspectJCachingConfiguration, springConfiguredConfiguration, aspectJAsyncConfiguration, aspectJTransactionManagementConfiguration, proxyCachingConfiguration, loadTimeWeavingConfiguration, proxyAsyncConfiguration, schedulingConfiguration, proxyTransactionManagementConfiguration, delegatingWebMvcConfiguration]rn at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:327)rn at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:222)rn at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:686)rn at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:625)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4772)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1069)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1719)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)rn at java.util.concurrent.FutureTask.run(FutureTask.java:266)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:745)rnrn三月 30, 2015 3:20:35 下午 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class com.hui.platform.framework.listener.HuiPlatformBSListenerrnjava.lang.IllegalStateException: CGLIB is required to process @Configuration classes. Either add CGLIB to the classpath or remove the following @Configuration bean definitions: [aspectJCachingConfiguration, springConfiguredConfiguration, aspectJAsyncConfiguration, aspectJTransactionManagementConfiguration, proxyCachingConfiguration, loadTimeWeavingConfiguration, proxyAsyncConfiguration, schedulingConfiguration, proxyTransactionManagementConfiguration, delegatingWebMvcConfiguration]rn at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:327)rn at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:222)rn at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:686)rn at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:625)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4772)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1069)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1719)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)rn at java.util.concurrent.FutureTask.run(FutureTask.java:266)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:745)rnrn
spring mvc spring spring jpa集成
spring mvc spring jpa集成 mysql
简单的spring mvc项目
spring mvc的简单地账号登陆及逻辑判断,涵盖了前台到后台以及配置文件的配置等。其中附有spring mvc的原理图。项目解压缩即可部署运行。
Spring MVC入门项目
这是学习Spring MVC时写的一个入门项目,初学者可以在eclipse上直接运行!
spring mvc项目
spring mvc 框架简答的一个项目,部署后可以直接运行(http://localhost:8080/springMVC/hello)
Spring MVC 项目Demo
用Spring MVC+MyBaits+Maven+Jetty+IntelliJ IDEA 12.0.4 +Mysql 搭建了一个项目。比较简单。供参考。
搭建 Spring MVC 项目
1、创建web项目 2、下载配置spring mvc的jar包 地址:https://repo.spring.io/libs-release-local/org/springframework/spring/  3、配置web.xml文档 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="h...
spring mvc项目启动报错
spring mvc 项目启动时候报这个错误rnjava.lang.NoSuchMethodError: org.springframework.web.context.support.XmlWebApplicationContext.getEnvironment()rnrnweb.xml的部分代码如下 rn[code=text] rn contextConfigLocation rn classpath*:config/beans.xml rn rn rn rn org.springframework.web.context.ContextLoaderListener rn rn rn org.springframework.web.context.ContextCleanupListener rn rn rn rn spring-mvc rn org.springframework.web.servlet.DispatcherServlet rn 1 rn rn rn spring-mvc rn / rn [/code] rnrnbeans.xml代码如下rn[code=text] rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn [/code]rnrn具体使用的jar包截图rn[img=https://img-bbs.csdn.net/upload/201409/01/1409555500_166122.png][/img]rnrn不知道是我引用的哪个包版本有问题,还是相关的xml文件配置写错了,求正解
Spring MVC超市项目
本资源是一个完整的超市订单系统的代码,并且有详细的注解。主要运用到SSM框架,以及MySQL数据库。
spring mvc项目总结
spring mvc aop
spring mvc 项目
一个简单的 spring mvc 项目,主要用于新手学习.本项目运用了spring mvc, mybatis,oracle相关技术
IDEA Spring MVC项目
IDEA配置好得Spring mvc 项目,下载导入可直接使用,谢谢下载!
spring mvc项目整合
最新 spring mybitates spring mvc
Spring MVC 项目快速搭建
Spring MVC 项目快速搭建 Spring MVC提供了一个DispatcherServlet来开发Web项目,在Servlet2.5及以下的时候,只要在web.xml中配置<servlet>元素即可。而Servlet3.0+在Spring MVC里实现WebApplicationInitializer接口便可实现等同于web.xml的配置。 下面将基于springBoot搭...
spring mvc 项目
代码完整 可供学习参考 注意是maven 项目哟!
Spring mvc 小项目
Spring mvc 小项目
spring MVC项目启动报错
错误如下:rn[code=java]严重: StandardWrapper.Throwablernorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'snt.paymsgexchange.web.controller.demo.TestJsonData#0': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private snt.common.dao.base.CommonDAO snt.paymsgexchange.web.controller.demo.TestJsonData.comdao; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [snt.common.dao.base.CommonDAO] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: @org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=commonDAO)rn at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1055)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:443)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:459)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:340)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:307)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)rn at javax.servlet.GenericServlet.init(GenericServlet.java:160)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5015)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5302)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3908)rn at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:426)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1350)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1537)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1547)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1547)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1526)rn at java.lang.Thread.run(Thread.java:619)rn[/code]rncontroller文件大概如下:rn[code=java]@Controllerrn@RequestMapping("/query")rnpublic class TestJsonData rnrn @Autowiredrn @Qualifier("commonDAO")rn private CommonDAO comdao;rnrn[/code]rncommonDAO是我在spring启动时的一个beanrn[code=text]rnrn rn[/code]rn是不是配置顺序除了问题?
Spring MVC项目快速搭建
一 点睛 Spring MVC提供了一个DispatcherServlet来开发Web项目。 在Servlet 2.5及以下的时候,只要在web.xml下配置<Servlet>元素就可以了。 但在Servlet 3.0下,可以实现无web.xml的配置。 在Spring MVC里实现WebApplicationInitializeer接口便实现等同web.xml的配置。 二 ...
spring MVC 项目商城
这是一个完整的商城项目,是用了Spring MVC开发的。
MVC 求大神指点
小弟刚刚看了几天MVC,有一些地方不是很明白,希望各位帮忙讲解一下。rn(1)MVC的路由机制rnMVC中路由有好几种定义,比如controller/action/id或者reporttype/year/month/day,系统路由设置是放在Global.asax文件中的,,,貌似只能设置一种默认路由吧,一般默认为controller/action/id,一个系统中只能有一个路由定义吗?那如果我打开报表,该怎么打开呢?rn(2)MVC怎么从数据库中已存在的表中读取数据,而不是通过EFCodeFirst方式新增的表。rn(3)我自定义了一个远程验证(Remote Validation),当不满足条件时是可以验证,但是当我保存数据的时候,确没反应。如果把我在Model上把它的特性去掉,就可以保存了。rn代码如下:rn[color=#FF0000]Controller[/color]rn public JsonResult CheckTitleUnqie(string Title)rn rn if (Title.Length > 5)rn rn return Json("标题太长了", JsonRequestBehavior.AllowGet);rn rn elsern rn return Json("",JsonRequestBehavior.DenyGet);rn rn rn[color=#0000FF]下面这个保存方法根本进不来。[/color]rn [HttpPost]rn public ActionResult Edit(Movie model)rn rn var movie = db.Movies.Find(model.ID);rn tryrn rn UpdateModel(movie);rn db.SaveChanges();rn return RedirectToAction("Details", new id = movie.ID );rn rn catch (Exception e)rn rn ModelState.AddModelError("", "修改失败");rn rn return View(movie);rn rnrn[color=#FF0000]Model:[/color]rnpublic class Moviern rn public int ID get; set; rn [Required(ErrorMessage="电影标题不能为空")]rn //[StringLength(10,ErrorMessage="电影标题不能超过10个字符")]rn [Remote("CheckTitleUnqie", "Movie")]rn public string Title get; set; rn public DateTime ResealseDate get; set; rn //[Required(ErrorMessage = "价格不能为空")]rn [Price(ErrorMessage = "价格不合理")]rn //[RegularExpression(@"^(0|1-9\d)$",ErrorMessage="")]rn public float Prices get; set;rn [Required(ErrorMessage = "0不能为空")]rn public string Type get; set; rn rn视图的就不贴了,应该没关系吧。
spring mvc 项目配置
本文介绍的spring mvc 项目配置要达到的目标是当访问网站静态资源的时候直接返回。 本项目视图选择原始的HTML,使用ajax访问后台控制器。1、首先在src下面创建controller包,主要用来放控制器,看名字就知道了。2、在网站根目录下面(web)创建static文件夹,主要是用来放静态文件(html,css,js,image等)。3、web.xml<?xml version="1.0
spring mVC项目
在spring的基础上整合了JPA和log4j
spring mvc实例项目
运用extjs2和spring mvc的项目,非常具有学习价值,里面有一套非常好用的jdbc技术.
快速搭建Spring MVC项目
使用Maven + SpringMVC架构快速搭建一个的服务端项目 1、使用Maven的maven-archetype-webapp创建web项目 新建project,勾选Create from archetype 填写项目信息 然后继续操作,直到项目创建完成,等待一会儿,注意右下角的这个提示框,点击Enable Auto-Import,等Maven处理依赖结束 2、添加Sp...
创建spring mvc 项目
Spring MVC 项目构建 使用myeclipse构建springmvc项目。 2、 输入项目名称,点击finish; 3、 新建web项目完成,下载spring相关jar包,下载地址为:https://repo.spring.io/release/org/springframework/
activiti-modeler集成到spring项目
activiti-modeler整合到spring项目的详细文档,及Activiti-activiti-5.22.0源码
相关热词 c# login 居中 c# 考试软件 c# 自然语言分析 c# 分段读取文件 c# 泛型反射 c#打断点 c# 时间转多少秒 c# 线程函数加参数 c# modbus 读取 c#查询集合表

相似问题

2
Spring Boot Web项目整合了CXF发布服务接导致Web页面访问不到了,求大神,谢谢。
4
http post 请求 spring mvc 接收参数为NULL 求大神帮助啊
1
WebSocket SockJs本地测试正常放到Linux连接不上,求大神帮忙
7
jsp中javascript中的image怎么保存到服务器,web项目,求大神解答,困扰好久了
3
求关于spring的websocket实现单人和多人聊天的例子
10
spring boot和mybatis整合项目,测试的时候出现这个错误,哪位大神知道怎么解决
19
SpringMVC中的model是什么?下面这段代码中有用到model吗?求大神指点
1
在springboot与springCloud整合的时候Eureka服务注册不了,求大神解答
4
Spring Aop 能切入jar包中的某个类的某个方法吗
3
求IDEA 2018 Spring+MVC供Android /IOS调用的 接口Demo
1
maven项目的父级pom依赖问题求大神指教
4
关于spring集成mybatis的问题,请大神帮忙解决一下
3
项目启动不报错,但是访问后报404,求大神支招.
2
求大神帮我看看 Spring中导入ApplicationContext出错了 怎么办
3
Vue从一个页面跳转到一个页面 在返回,第一个页面的js无法使用了,这是为什么 求大神指教
2
spring+springmvc+mybatis扫描mapper文件的问题
1
求问各位大神这个问题怎么解决,在用mockMvc模拟mvc请求时报错
1
最近开始使用idea写了个练手项目但是一直报这个错误,求大神看看什么问题
3
Spring集成kafka,消费者运行时内存占用会一直增长?
0
python小白 求大神支招 现有3个有内容的dat文件,把这3个文件 循环读入300个新建dat文件里。