Giter Club home page Giter Club logo

myblog's Introduction

MyBlog

GitHub license

SpringBoot、Mybatis开发的个人博客系统,支持Markdown编辑文章。

本地运行

Mysql数据库的配置

请在本机上安装Mysql数据库,并执行以下sql语句,来创建表

用户表

CREATE TABLE `admin` (
  `pk_admin_id` int(11) NOT NULL AUTO_INCREMENT,
  `admin_name` char(32) NOT NULL,
  `admin_password` char(32) NOT NULL,
  PRIMARY KEY (`pk_admin_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

文章表

CREATE TABLE `article` (
  `pk_article_id` int(11) NOT NULL AUTO_INCREMENT,
  `article_category` varchar(30) NOT NULL DEFAULT '种类',
  `article_title` varchar(30) NOT NULL,
  `article_content` varchar(5000) NOT NULL,
  `article_time` varchar(30) NOT NULL,
  PRIMARY KEY (`pk_article_id`)
) ENGINE=InnoDB AUTO_INCREMENT=254 DEFAULT CHARSET=utf8;

评论表

CREATE TABLE `comment` (
  `pk_comment_id` int(11) NOT NULL AUTO_INCREMENT,
  `comment_name` varchar(30) NOT NULL,
  `comment_email` varchar(30) NOT NULL,
  `comment_content` varchar(50) NOT NULL,
  `comment_time` varchar(30) NOT NULL,
  `article_id` int(11) NOT NULL,
  PRIMARY KEY (`pk_comment_id`)
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8;

Maven打包项目

如果你还没有Maven,请先下载Maven下载

安装完成后,请切换到项目位置,执行以下命令:

mvn clean package  -D maven.test.skip=true

项目运行

因为本项目采用的是JDK1.8版本,请下载兼容的JDK版本,并执行以下命令:

java -jar  xxx.xxxxx-1.0.0.jar

到此项目即完成配置,用浏览器访问localhost:8088便可访问博客项目。

问题讨论

欢迎大家给本项目提issue,也可QQ联系我(939647181),或者到我博客上给我留言。我的博客

myblog's People

Contributors

fourierai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

myblog's Issues

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.