Coder Social home page Coder Social logo

springmvc_study's Introduction

SpringMVC_Study

学习springMVC根据csnd倪升武的博客【SpringMVC学习】

ssm整合分支

  1. 在lib文件夹中添加jar包(具体已经提取出来了)
  2. 整合dao层
    • 在config文件夹中添加mybatis全局配置文件、db.properties和log4j.properties
    • 配置spring配置文件,spring的配置文件我将分类写在不同的文件中,在config/spring/目录下了,这里是对dao的整合,起名applicationContext-dao.xml
    • 逆向工程生成po类及mapper 详细讲解 此处在mysql数据库中建一个数据库(mybatis),无数据库源码,自己建表。代码在源码中复制。
    • dao层就整合后,针对ItemsMapper接口中的SelectByPrimaryKey()方法做一个测试。成功打印出id为1的Items对象及成功整合了dao层。

springmvc_study's People

Watchers

James Cloos 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.