轻量级的内容管理系统
Notice !!! This is a standalone version,plugable version,please visit bugucms-plugin-container
释义:BuguCMS,全称 Bugu Content Manage System,中文即布谷内容管理系统,灵感取自布谷鸟,鸣声响亮,二声一度,希望用户在使用时像耳边时刻响起布谷鸟叫声一样愉悦。
参考: 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
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
方法
(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存储