GithubHelp home page GithubHelp logo

ssmdemo's Introduction

SsmDemo

一个简单的SSM整合小案例

这是我学习完SSM框架后做的一个SSM整合的小案例,其中包含的技术点主要有:

  • 基础框架-SSM(SpringMVC+Spring+Mybatis)
  • 数据库-MySQL
  • 前端框架-使用BootStrap快速搭建简洁美观的界面
  • 项目管理-Maven
  • 分页-使用PageHelper
  • 使用Mybatis Generator自动生成Java POJO及Mapper文件
  • 使用REST风格的URI

项目中遇到的一些问题

  • 项目使用的是REST风格的URI,在前台页面提交PUT类型的ajax请求时,SpringMVC的前端控制器并不能收到PUT方式的请求,
    原因是Tomcat服务器默认并不支持PUT方式的请求,此时需要在web.xml中加一个对PUT请求支持的过滤器:
<filter>
  <filter-name>HttpPutFormContentFilter</filter-name>
  <filter-class>org.springframework.web.filter.HttpPutFormContentFilter</filter-class>
</filter>
<filter-mapping>
  <filter-name>HttpPutFormContentFilter</filter-name>
  <url-pattern>/*</url-pattern>
</filter-mapping>

ssmdemo's People

Contributors

wangli777 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.