Coder Social home page Coder Social logo

huanhuan-blog's Introduction

huanhuan-blog

前言

这是一个个人博客的项目,用于展示自己写的一些文章,和个人联系方式。

建立这个项目的目的,主要是拿freemarker练练手。在分支里包含了各个实验田。

  • spring-xml分支

最原始的spring配置方式,xml文件配置各个bean,在web.xml配置文件加载spring配置文件。

  • spring-xml-profile分支

在上一个分支的基础上,利用了spring profile功能,加上自动切换环境的配置。不了解基本概念的,请自行百度spring profile。

  • spring-xml-mapper-profile分支

在上一个分支的基础上,加上mybatis一个非常好用的插件:通用mapper。详情请看http://git.oschina.net/free/Mapper

  • spring-boot分支

重写代码,使用全新框架spring-boot,跟master分支代码完全相同。包含的功能最新最全。

  • redis-cache分支

在上一个分支的基础上,尝试使用redis作为缓存。

软件环境

IntelliJ IDEA 15.0

jdk 1.8

maven 3.3.9

使用的技术

后端

  • springmvc
  • mybatis
  • spring-boot
  • redis

前端

  • freemarker

更新日志

2.0

  1. 博客内容使用数据库的表数据填充,不再写死。
  2. 优化增删改查,封装mybatis最基础的CRUD
  3. 项目框架换成spring-boot

1.0

  1. 搭建基础环境,完成CRUD基础搭建,并在controller类,写出一个简单的查询。

怎么使用本项目

  1. git clone [email protected]:heikehuan/huanhuan-blog.git
  2. 在MySQL中导入 huanhuan-blog/src/main/resources/test.sql 脚本
  3. 更新 huanhuan-blog/src/main/resources/datasource.properties 中jdbc.user和jdbc.password的值
  4. cd huanhuan-blog
  5. mvn war:war
  6. 把 huanhuan-blog/target/huanhuan-blog-1.0-SNAPSHOT.war 发布在App Server(Tomcat、JBOSS) 中

在IDE 中查看源码并运行

1. 在IntelliJ IDEA (推荐使用)

File -> Import Project -> select huanhuan-blog folder -> create project form existing sources -> ...

2. 在Eclipse

File -> Import -> Existing Maven Projects -> ...

效果图

主页

huanhuan-blog's People

Contributors

keepmoving1573 avatar

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.