Code Monkey home page Code Monkey logo

ssm_redis_template's Introduction

spring_mvc_mybatis_maven模板

基于maven的Java web项目框架模板,
使用spring + spring_mvc + mybatis + spring-data-redis 等框架
各种配置文件都已写好
并实现了一个简单的登陆注册功能
可用于在IDEA上快速构建web项目或入门学习

更多 spring_mvc教程demo:
https://github.com/Maicius/Spring_course

几个重要的版本

  • Java JDK 8
  • Jedis 2.7.3
  • Spring-data-redis 1.6.2.RELEASE
  • mysql 5.1.6
  • Spring 4.3.7.RELEASE

Build and Run

  • 本项目使用maven作为管理工具
  • 默认数据库为redis,并使用spring-data-redis对redis进行了封装
  • 如需使用mysql和mybatis
  • 请回退到 2017-7-21日前版本

一些可能到错误(针对mac):

1.pom.xml里某些包出现无法找到对应版本

解决方法:update maven

2.maven成功引入所有的包,但报 class not found之类但错误

原因:包损坏(可能是下载过程中突然断网引起的) 解决方法:进入 .m2 目录删除repository,重新下载所有的包

3.maven更新和下载速度过慢

解决方法:将中心仓库的镜像替换为阿里云镜像,在用户目录下打开 .m2 目录下setting.xml, 将替换为下面内容:

<mirror>
  <id>alimaven</id>
  <name>aliyun maven</name>
  <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  <mirrorOf>central</mirrorOf>
</mirror>

ssm_redis_template's People

Contributors

maicius avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ssm_redis_template's Issues

pom.xml出错

pom.xml文件中怎么又两个resources标签 导致maven 资源下载出错

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.