Code Monkey home page Code Monkey logo

bugucms's Introduction

bugucms

轻量级的内容管理系统

Notice !!! This is a standalone version,plugable version,please visit bugucms-plugin-container

BuguCMS

释义:BuguCMS,全称 Bugu Content Manage System,中文即布谷内容管理系统,灵感取自布谷鸟,鸣声响亮,二声一度,希望用户在使用时像耳边时刻响起布谷鸟叫声一样愉悦。

安装objdbc

参考: https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html

mvn install:install-file -Dfile=outjar/ojdbc6/ojdbc6-11.2.0.4-oracle.jar -DpomFile=outjar/ojdbc6/ojdbc6-11.2.0.4.pom

构建

mvn clean package -DskipTests

运行

mvn spring-boot:run

亮点

插件支持,支持自定义插件和扩展

多模板引擎支持,支持主流模板引擎Thymeleaf、Freemarker、Velocity

多数据库支持,主持主流数据库Oracle、SQL Server、MySQL

演示

http://v1.terwergreen.com:8000

截图

首页

后台登录

后台管理

相关技术

Centos 7.4

JDK1.8.162

Spring Boot 2.0.0

LogBack

Thymeleaf模板引擎

Maven 3.5.3 (使用阿里云Maven仓库)

Tomcat 8.5.28

MySQL 5.7.19

Oracle 11g

MyBatis 3.4.6

JSON

kaptcha图片验证码组件

HTML5

jQuery 1.10.1

bootstrap 3.3.7

LAU(基于layui的后台管理模板)

启动

注意

(1)ojdbc6.jar需要手动安装,在项目的lib目录下,需要用命令mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.4 -Dpackaging=jar -Dfile=ojdbc6.jar安装
(2)Spring Boot 默认将 /webjars/** 映射到 classpath:/META-INF/resources/webjars/ ,根据访问资源的规则,在JSP页面中引入jquery.js的方法为:

<script type="text/javascript" src="${pageContext.request.contextPath}/webjars/jquery/1.10.1/jquery.js"></script>

(3)错误页面网页与API调用分开,用isAPI字段标识,String isAPI = request.getParameter("isAPI");,网页访问不传,API访问传Y,API调用系统异常返回JSON,网页访问系统异常输出HTML页面。

本地启动

运行BugucmsApplication.java里面的main方法

Tomcat启动

(1)使用IntelliJ IDEA

Build --> Build Artifacts --> 选择要打包编译的war --> 在项目target文件夹下出现新的jar包
或者使用eclipse

Run as -->Maven Build --> 在弹出的框里面输入命令 package,点击run,等待任务完成出现 BUILD SUCCES,编译好的文件就会被打包好在target目录下

(2)将war包放到tomcat的webapps目录下

发布流程

(1)部署之前初始化ddl表结构(如果需要),具体请查看db目录

(2)部署之前初始化数据(如果需要),具体请查看db目录

(3)在服务器上clone项目,然后运行

docker compose up -d --build

大功告成!

参考

玩转spring boot——负载均衡与session共享
Spring Boot项目利用Redis实现session管理
spring-boot+spring-session集成
使用Spring Session实现Spring Boot水平扩展
SpringBoot集成Shiro并用MongoDB做Session存储

bugucms's People

Contributors

dependabot[bot] avatar terwer avatar youweics avatar

Stargazers

 avatar

Watchers

 avatar  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.