🔖 统一管理maven依赖的版本,更新sql文件

上级 0d16db4e
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>blog-admin</artifactId>
<packaging>jar</packaging>
<name>blog-admin</name>
<description>blog admin project for Spring Boot</description>
<parent>
<groupId>com.zyd</groupId>
<artifactId>blog</artifactId>
<version>2.1.0.Beta</version>
</parent>
<dependencies>
<dependency>
<groupId>com.zyd</groupId>
<artifactId>blog-core</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-websocket</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<!-- 解决@xx@无法解析的问题 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<delimiters>
<delimiter>@</delimiter>
</delimiters>
<useDefaultDelimiters>false</useDefaultDelimiters>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.zyd.blog.BlogAdminApplication</mainClass>
<layout>JAR</layout>
<packaging>jar</packaging>
<name>blog-admin</name>
<description>OneBlog 后台程序</description>
<parent>
<groupId>com.zyd</groupId>
<artifactId>blog</artifactId>
<version>2.1.0.Beta</version>
</parent>
<dependencies>
<dependency>
<groupId>com.zyd</groupId>
<artifactId>blog-core</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-websocket</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<!-- 解决@xx@无法解析的问题 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<delimiters>
<delimiter>@</delimiter>
</delimiters>
<useDefaultDelimiters>false</useDefaultDelimiters>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.zyd.blog.BlogAdminApplication</mainClass>
<layout>JAR</layout>
<!--构建完整可执行程序,可以直接运行-->
<executable>true</executable>
</configuration>
</plugin>
</plugins>
</build>
</configuration>
</plugin>
</plugins>
</build>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>blog-core</artifactId>
<packaging>jar</packaging>
<artifactId>blog-core</artifactId>
<packaging>jar</packaging>
<name>blog-core</name>
<description>blog core for Spring Boot</description>
<name>blog-core</name>
<description>OneBlog 核心依赖代码,包含bo、do、dao等</description>
<parent>
<groupId>com.zyd</groupId>
<artifactId>blog</artifactId>
<version>2.1.0.Beta</version>
</parent>
<parent>
<groupId>com.zyd</groupId>
<artifactId>blog</artifactId>
<version>2.1.0.Beta</version>
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<!--集成redis,client改用jedis-->
<dependency>
<groupId>org.springframework.boot</groupId>
......@@ -43,34 +43,34 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-json</artifactId>
</dependency>
<!-- aop -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<!--springboot 集成Mybatis所需jar配置 start -->
<!--支持使用 JDBC 访问数据库 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<!--mybatis-->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.2</version>
<!-- aop -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<!--springboot 集成Mybatis所需jar配置 start -->
<!--支持使用 JDBC 访问数据库 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<!--mybatis-->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>${mybatis.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-jdbc</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--mapper-->
<dependency>
<groupId>tk.mybatis</groupId>
<artifactId>mapper-spring-boot-starter</artifactId>
<version>2.1.0</version>
</dependency>
<!--mapper-->
<dependency>
<groupId>tk.mybatis</groupId>
<artifactId>mapper-spring-boot-starter</artifactId>
<version>${mapper.version}</version>
<exclusions>
<exclusion>
<artifactId>mybatis-spring-boot-starter</artifactId>
......@@ -78,44 +78,44 @@
</exclusion>
</exclusions>
</dependency>
<!--pagehelper-->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.3</version>
</dependency>
<!--mysql-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<!--pagehelper-->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>${pagehelper.version}</version>
</dependency>
<!--mysql-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
</dependency>
<!--druid依赖添加-->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.10</version>
</dependency>
<!--springboot 集成Mybatis所需jar配置 end -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.44</version>
</dependency>
<version>${druid.version}</version>
</dependency>
<!--springboot 集成Mybatis所需jar配置 end -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>${fastjson.version}</version>
</dependency>
<!--shiro依赖添加-->
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-spring</artifactId>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>org.crazycake</groupId>
<artifactId>shiro-redis</artifactId>
<version>2.4.2.1-RELEASE</version>
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-spring</artifactId>
<version>${shiro.spring.version}</version>
</dependency>
<dependency>
<groupId>org.crazycake</groupId>
<artifactId>shiro-redis</artifactId>
<version>${shiro.redis.version}</version>
<exclusions>
<exclusion>
<artifactId>shiro-core</artifactId>
......@@ -123,10 +123,10 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>net.mingsoft</groupId>
<artifactId>shiro-freemarker-tags</artifactId>
<version>0.1</version>
<dependency>
<groupId>net.mingsoft</groupId>
<artifactId>shiro-freemarker-tags</artifactId>
<version>${shiro.freemarker.tags.version}</version>
<exclusions>
<exclusion>
<artifactId>fastjson</artifactId>
......@@ -142,23 +142,23 @@
</exclusion>
</exclusions>
</dependency>
<!-- 解析HTML -->
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.7.3</version>
</dependency>
<!-- 解析HTML -->
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>${jsoup.version}</version>
</dependency>
<!--七牛云依赖-->
<dependency>
<groupId>com.qiniu</groupId>
<artifactId>qiniu-java-sdk</artifactId>
<version>[7.0.0, 7.1.99]</version>
</dependency>
<dependency>
<groupId>eu.bitwalker</groupId>
<artifactId>UserAgentUtils</artifactId>
<version>1.20</version>
</dependency>
<dependency>
<groupId>com.qiniu</groupId>
<artifactId>qiniu-java-sdk</artifactId>
<version>${qiniu.version}</version>
</dependency>
<dependency>
<groupId>eu.bitwalker</groupId>
<artifactId>UserAgentUtils</artifactId>
<version>${useragentutils.version}</version>
</dependency>
<!--web相关依赖添加-->
<dependency>
<groupId>org.springframework.boot</groupId>
......@@ -167,17 +167,17 @@
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>2.0.1.Final</version>
<version>${javax.validation.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
<version>6.0.9.Final</version>
<version>${hibernate.validator.version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>8.5.29</version>
<version>${tomcat.version}</version>
</dependency>
<dependency>
<groupId>com.zyd</groupId>
......@@ -194,7 +194,7 @@
<dependency>
<groupId>me.zhyd.braum.spring.boot</groupId>
<artifactId>braum-spring-boot-starter</artifactId>
<version>1.0.0-alpha</version>
<version>${braum.version}</version>
</dependency>
</dependencies>
</project>
......@@ -4,9 +4,9 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
import com.zyd.blog.business.enums.LinkSourceEnum;
import com.zyd.blog.persistence.beans.SysLink;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.util.StringUtils;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;
......@@ -41,7 +41,7 @@ public class Link {
this.sysLink.setId(id);
}
@NotEmpty(message = "站点地址不能为空")
@NotNull(message = "站点地址不能为空")
@Pattern(regexp = "(https?|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]", message = "不合法的地址")
public String getUrl() {
return this.sysLink.getUrl();
......@@ -51,7 +51,7 @@ public class Link {
this.sysLink.setUrl(url);
}
@NotEmpty(message = "站点名称不能为空")
@NotNull(message = "站点名称不能为空")
@Length(max = 15, min = 1, message = "站点名称长度建议保持在15个字符以内")
public String getName() {
return this.sysLink.getName();
......@@ -61,7 +61,7 @@ public class Link {
this.sysLink.setName(name);
}
@NotEmpty(message = "站点描述不能为空")
@NotNull(message = "站点描述不能为空")
@Length(max = 30, min = 1, message = "站点描述这么长,亲你是想参加作文比赛么?^_^")
public String getDescription() {
return this.sysLink.getDescription();
......
......@@ -7,7 +7,7 @@
<packaging>jar</packaging>
<name>blog-spider</name>
<description>Demo project for Spring Boot</description>
<description>爬虫模块,主要用来定制爬虫</description>
<parent>
<groupId>com.zyd</groupId>
......@@ -19,7 +19,7 @@
<dependency>
<groupId>us.codecraft</groupId>
<artifactId>webmagic-core</artifactId>
<version>0.7.3</version>
<version>${webmagic.version}</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
......@@ -30,7 +30,7 @@
<dependency>
<groupId>us.codecraft</groupId>
<artifactId>webmagic-extension</artifactId>
<version>0.7.3</version>
<version>${webmagic.version}</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
......@@ -41,17 +41,17 @@
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.10.2</version>
<version>${jsoup.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
<version>6.0.9.Final</version>
<version>${hibernate.validator.version}</version>
</dependency>
<dependency>
<groupId>com.github.crab2died</groupId>
<artifactId>Excel4J</artifactId>
<version>2.1.4-Final</version>
<version>${excel4j.version}</version>
</dependency>
</dependencies>
</project>
......@@ -8,7 +8,7 @@ import us.codecraft.webmagic.proxy.Proxy;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
......@@ -23,20 +23,20 @@ import java.util.Map;
@Data
public class BaseModel {
public boolean isSingle;
@NotEmpty(message = "必须指定标题抓取规则(xpath)")
@NotNull(message = "必须指定标题抓取规则(xpath)")
private String titleRegex;
@NotEmpty(message = "必须指定内容抓取规则(xpath)")
@NotNull(message = "必须指定内容抓取规则(xpath)")
private String contentRegex;
@NotEmpty(message = "必须指定发布日期抓取规则(xpath)")
@NotNull(message = "必须指定发布日期抓取规则(xpath)")
private String releaseDateRegex;
@NotEmpty(message = "必须指定作者抓取规则(xpath)")
@NotNull(message = "必须指定作者抓取规则(xpath)")
private String authorRegex;
@NotEmpty(message = "必须指定待抓取的url抓取规则(xpath)")
@NotNull(message = "必须指定待抓取的url抓取规则(xpath)")
private String targetLinksRegex;
private String tagRegex;
private String keywordsRegex = "//meta [@name=keywords]/@content";
private String descriptionRegex = "//meta [@name=description]/@content";
@NotEmpty(message = "必须指定网站根域名")
@NotNull(message = "必须指定网站根域名")
private String domain;
private String charset = "utf8";
/**
......@@ -60,7 +60,7 @@ public class BaseModel {
/**
* 抓取入口地址
*/
// @NotEmpty(message = "必须指定待抓取的网址")
// @NotNull(message = "必须指定待抓取的网址")
private String[] entryUrls;
/**
* 退出方式{DURATION:爬虫持续的时间,URL_COUNT:抓取到的url数量}
......
......@@ -7,7 +7,7 @@
<packaging>jar</packaging>
<name>blog-web</name>
<description>blog web project for Spring Boot</description>
<description>OneBlog 前台程序</description>
<parent>
<groupId>com.zyd</groupId>
......
......@@ -36,32 +36,37 @@ INSERT INTO `dblog`.`biz_type` VALUES ('3', null, '其他文章', '记录网站
# 清空系统配置表
TRUNCATE TABLE `dblog`.`sys_config`;
# 初始化系统配置
INSERT INTO `dblog`.`sys_config` VALUES (1, 'homeDesc', 'OneBlog是一款简洁美观、自适应的Java博客系统。使用springboot开发,前端使用Bootstrap。支持移动端自适应,配有完备的前台和后台管理功能。', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (2, 'homeKeywords', 'OneBlog,开源博客', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (3, 'domain', 'zhyd.me', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (4, 'cmsUrl', 'http://localhost:8086', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (5, 'siteUrl', 'http://localhost:8443', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (6, 'siteName', 'OneBlog开源博客', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (7, 'siteDesc', 'OneBlog是一款简洁美观、自适应的Java博客系统', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (8, 'siteFavicon', 'http://localhost:8443/img/favicon.ico', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (9, 'staticWebSite', 'http://localhost:8443', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (10, 'authorName', '张亚东', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (11, 'authorEmail', 'yadong.zhang0415#gmail.com', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (12, 'wxCode', 'https://static.zhyd.me/static/img/wechat_account.jpg', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (13, 'qq', '843977358', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (14, 'weibo', 'http://weibo.com/211230415', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (15, 'github', 'https://github.com/zhangyd-c', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (16, 'maintenance', '0', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (17, 'maintenanceDate', now(), now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (18, 'comment', '1', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (19, 'qiniuBasePath', 'http://pe6duqm84.bkt.clouddn.com/', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (20, 'qiniuAccessKey', NULL, now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (21, 'qiniuSecretKey', NULL, now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (22, 'qiniuBucketName', NULL, now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (23, 'baiduPushToken', NULL, now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (24, 'wxPraiseCode', 'qrcode/wx_code.png', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (25, 'zfbPraiseCode', 'qrcode/zfb_code.png', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (26, 'baiduApiAk', 'NwHaYlGalDEpgxm46xBaC3T9', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (1, 'homeDesc', 'OneBlog是一款简洁美观、自适应的Java博客系统。使用springboot开发,前端使用Bootstrap。支持移动端自适应,配有完备的前台和后台管理功能。', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (2, 'homeKeywords', 'OneBlog,开源博客', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (3, 'domain', 'zhyd.me', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (4, 'cmsUrl', 'http://localhost:8085', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (5, 'siteUrl', 'http://localhost:8443', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (6, 'siteName', 'OneBlog开源博客', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (7, 'siteDesc', 'OneBlog是一款简洁美观、自适应的Java博客系统', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (8, 'siteFavicon', 'http://localhost:8443/img/favicon.ico', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (9, 'staticWebSite', 'http://localhost:8443', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (10, 'authorName', '张亚东', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (11, 'authorEmail', 'yadong.zhang0415#gmail.com', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (12, 'wxCode', 'https://static.zhyd.me/static/img/wechat_account.jpg', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (13, 'qq', '843977358', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (14, 'weibo', 'http://weibo.com/211230415', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (15, 'github', 'https://github.com/zhangyd-c', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (16, 'maintenance', '0', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (17, 'maintenanceDate', now(), now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (18, 'comment', '1', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (19, 'qiniuBasePath', NULL, now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (20, 'qiniuAccessKey', NULL, now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (21, 'qiniuSecretKey', NULL, now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (22, 'qiniuBucketName', NULL, now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (23, 'baiduPushToken', NULL, now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (24, 'wxPraiseCode', NULL, now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (25, 'zfbPraiseCode', NULL, now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (26, 'baiduApiAk', 'NwHaYlGalDEpgxm46xBaC3T9', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (27, 'spiderConfig', '{\r\n imooc: {\r\n domain: \"www.imooc.com\",\r\n titleRegex: \"//span[@class=js-title]/html()\",\r\n authorRegex: \"//div[@class=name_con]/p[@class=name]/a[@class=nick]/html()\",\r\n releaseDateRegex: \"//div[@class=\'dc-profile\']/div[@class=\'l\']/span[@class=\'spacer\']/text()\",\r\n contentRegex: \"//div[@class=detail-content]/html()\",\r\n targetLinksRegex: \"/article/[0-9]{1,10}\",\r\n tagRegex: \"//div[@class=cat-box]/div[@class=cat-wrap]/a[@class=cat]/html()\",\r\n header: [\r\n \"Host=www.imooc.com\",\r\n \"Referer=https://www.imooc.com\"\r\n ],\r\n entryUrls: \'https://www.imooc.com/u/{uid}/articles?page={curPage}\'\r\n },\r\n csdn: {\r\n domain: \"blog.csdn.net\",\r\n titleRegex: \"//h1[@class=title-article]/html()\",\r\n authorRegex: \"//a[@class=follow-nickName]/html()\",\r\n releaseDateRegex: \"//div[@class=\'article-bar-top\']/span[@class=\'time\']/text()\",\r\n contentRegex: \"//div[@class=article_content]/html()\",\r\n targetLinksRegex: \".*blog\\\\.csdn\\\\.net/{uid}/article/details/[0-9a-zA-Z]{1,15}\",\r\n tagRegex: \"//span[@class=artic-tag-box]/a[@class=tag-link]/html()\",\r\n header: [\r\n \"Host=blog.csdn.net\",\r\n \"Referer=https://blog.csdn.net/{uid}/article/list/1\"\r\n ],\r\n entryUrls: \'https://blog.csdn.net/{uid}/article/list/{curPage}\'\r\n },\r\n iteye: {\r\n domain: \"{uid}.iteye.com\",\r\n titleRegex: \"//div[@class=blog_title]/h3/a/html()\",\r\n authorRegex: \"//div[@id=blog_owner_name]/html()\",\r\n releaseDateRegex: \"//div[@class=blog_bottom]/ul/li/html()\",\r\n contentRegex: \"//div[@class=blog_content]/html()\",\r\n targetLinksRegex: \".*{uid}\\\\.iteye\\\\.com/blog/[0-9]+\",\r\n tagRegex: \"//div[@class=news_tag]/a/html()\",\r\n header: [\r\n \"Host={uid}.iteye.com\",\r\n \"Referer=http://{uid}.iteye.com/\"\r\n ],\r\n entryUrls: \'http://{uid}.iteye.com/?page={curPage}\'\r\n },\r\n csblogs: {\r\n domain: \"www.cnblogs.com\",\r\n titleRegex: \"//a[@id=cb_post_title_url]/html()\",\r\n authorRegex: \"//div[@class=postDesc]/a[1]/html()\",\r\n releaseDateRegex: \"//span[@id=post-date]/html()\",\r\n contentRegex: \"//div[@id=cnblogs_post_body]/html()\",\r\n targetLinksRegex: \".*www\\\\.cnblogs\\\\.com/{uid}/p/[\\\\w\\\\d]+\\\\.html\",\r\n tagRegex: \"//div[@id=EntryTag]/a/html()\",\r\n header: [\r\n \"Host=www.cnblogs.com\",\r\n \"Referer=https://www.cnblogs.com/\"\r\n ],\r\n entryUrls: \'https://www.cnblogs.com/{uid}/default.html?page={curPage}\'\r\n }\r\n }', '2019-01-21 11:58:12', '2019-01-21 11:58:12');
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (28, 'anonymous', '1', '2019-01-24 19:13:33', '2019-01-25 17:38:12');
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (29, 'editorPlaceholder', '说点什么吧', '2019-01-24 19:13:33', '2019-01-25 17:38:12');
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (30, 'editorAlert', '讲文明、要和谐', '2019-01-24 19:13:33', '2019-01-25 17:38:12');
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (31, 'defaultUserAvatar', '[\r\n \"http://localhost:8443/img/random/user/1.jpg\",\r\n \"http://localhost:8443/img/random/user/2.jpg\",\r\n \"http://localhost:8443/img/random/user/3.jpg\",\r\n \"http://localhost:8443/img/random/user/4.jpg\",\r\n \"http://localhost:8443/img/random/user/5.jpg\",\r\n \"http://localhost:8443/img/random/user/6.jpg\",\r\n \"http://localhost:8443/img/random/user/7.jpg\",\r\n \"http://localhost:8443/img/random/user/8.jpg\",\r\n \"http://localhost:8443/img/random/user/9.jpg\",\r\n \"http://localhost:8443/img/random/user/10.jpg\",\r\n \"http://localhost:8443/img/random/user/11.jpg\",\r\n \"http://localhost:8443/img/random/user/12.jpg\",\r\n \"http://localhost:8443/img/random/user/13.jpg\",\r\n \"http://localhost:8443/img/random/user/14.jpg\",\r\n \"http://localhost:8443/img/random/user/15.jpg\",\r\n \"http://localhost:8443/img/random/user/16.jpg\",\r\n \"http://localhost:8443/img/random/user/17.jpg\",\r\n \"http://localhost:8443/img/random/user/18.jpg\",\r\n \"http://localhost:8443/img/random/user/19.jpg\",\r\n \"http://localhost:8443/img/random/user/20.jpg\"\r\n]', '2019-01-28 16:40:04', '2019-01-28 16:40:04');
# 清空友情链接表
TRUNCATE TABLE `dblog`.`sys_link`;
......
......@@ -152,12 +152,13 @@ CHANGE COLUMN `maintenance_data` `maintenance_date` datetime(0) NULL DEFAULT CUR
CHANGE COLUMN `qiuniu_base_path` `qiniu_base_path` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '七牛路径' AFTER `comment`;
####################################################################### 2019-01-29日更新的从这儿开始执行 #########################################################################################
# 2019-01-21 修改config表结构,建议升级之前先备份本地的config表数据
DROP TABLE IF EXISTS `sys_config`;
CREATE TABLE `sys_config` (
`id` int(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`config_key` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '首页描述',
`config_value` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '首页关键字',
`config_key` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '配置关键字',
`config_value` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '配置项内容',
`create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间',
`update_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
......@@ -165,32 +166,38 @@ CREATE TABLE `sys_config` (
# 清空系统配置表
TRUNCATE TABLE `dblog`.`sys_config`;
# 初始化系统配置
INSERT INTO `dblog`.`sys_config` VALUES (1, 'homeDesc', 'OneBlog是一款简洁美观、自适应的Java博客系统。使用springboot开发,前端使用Bootstrap。支持移动端自适应,配有完备的前台和后台管理功能。', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (2, 'homeKeywords', 'OneBlog,开源博客', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (3, 'domain', 'zhyd.me', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (4, 'cmsUrl', 'http://localhost:8086', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (5, 'siteUrl', 'http://localhost:8443', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (6, 'siteName', 'OneBlog开源博客', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (7, 'siteDesc', 'OneBlog是一款简洁美观、自适应的Java博客系统', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (8, 'siteFavicon', 'http://localhost:8443/img/favicon.ico', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (9, 'staticWebSite', 'http://localhost:8443', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (10, 'authorName', '张亚东', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (11, 'authorEmail', 'yadong.zhang0415#gmail.com', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (12, 'wxCode', 'https://static.zhyd.me/static/img/wechat_account.jpg', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (13, 'qq', '843977358', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (14, 'weibo', 'http://weibo.com/211230415', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (15, 'github', 'https://github.com/zhangyd-c', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (16, 'maintenance', '0', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (17, 'maintenanceDate', now(), now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (18, 'comment', '1', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (19, 'qiniuBasePath', 'http://pe6duqm84.bkt.clouddn.com/', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (20, 'qiniuAccessKey', NULL, now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (21, 'qiniuSecretKey', NULL, now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (22, 'qiniuBucketName', NULL, now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (23, 'baiduPushToken', NULL, now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (24, 'wxPraiseCode', 'qrcode/wx_code.png', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (25, 'zfbPraiseCode', 'qrcode/zfb_code.png', now(), now());
INSERT INTO `dblog`.`sys_config` VALUES (26, 'baiduApiAk', 'NwHaYlGalDEpgxm46xBaC3T9', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (1, 'homeDesc', 'OneBlog是一款简洁美观、自适应的Java博客系统。使用springboot开发,前端使用Bootstrap。支持移动端自适应,配有完备的前台和后台管理功能。', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (2, 'homeKeywords', 'OneBlog,开源博客', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (3, 'domain', 'zhyd.me', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (4, 'cmsUrl', 'http://localhost:8085', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (5, 'siteUrl', 'http://localhost:8443', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (6, 'siteName', 'OneBlog开源博客', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (7, 'siteDesc', 'OneBlog是一款简洁美观、自适应的Java博客系统', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (8, 'siteFavicon', 'http://localhost:8443/img/favicon.ico', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (9, 'staticWebSite', 'http://localhost:8443', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (10, 'authorName', '张亚东', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (11, 'authorEmail', 'yadong.zhang0415#gmail.com', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (12, 'wxCode', 'https://static.zhyd.me/static/img/wechat_account.jpg', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (13, 'qq', '843977358', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (14, 'weibo', 'http://weibo.com/211230415', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (15, 'github', 'https://github.com/zhangyd-c', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (16, 'maintenance', '0', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (17, 'maintenanceDate', now(), now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (18, 'comment', '1', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (19, 'qiniuBasePath', NULL, now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (20, 'qiniuAccessKey', NULL, now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (21, 'qiniuSecretKey', NULL, now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (22, 'qiniuBucketName', NULL, now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (23, 'baiduPushToken', NULL, now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (24, 'wxPraiseCode', NULL, now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (25, 'zfbPraiseCode', NULL, now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (26, 'baiduApiAk', 'NwHaYlGalDEpgxm46xBaC3T9', now(), now());
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (27, 'spiderConfig', '{\r\n imooc: {\r\n domain: \"www.imooc.com\",\r\n titleRegex: \"//span[@class=js-title]/html()\",\r\n authorRegex: \"//div[@class=name_con]/p[@class=name]/a[@class=nick]/html()\",\r\n releaseDateRegex: \"//div[@class=\'dc-profile\']/div[@class=\'l\']/span[@class=\'spacer\']/text()\",\r\n contentRegex: \"//div[@class=detail-content]/html()\",\r\n targetLinksRegex: \"/article/[0-9]{1,10}\",\r\n tagRegex: \"//div[@class=cat-box]/div[@class=cat-wrap]/a[@class=cat]/html()\",\r\n header: [\r\n \"Host=www.imooc.com\",\r\n \"Referer=https://www.imooc.com\"\r\n ],\r\n entryUrls: \'https://www.imooc.com/u/{uid}/articles?page={curPage}\'\r\n },\r\n csdn: {\r\n domain: \"blog.csdn.net\",\r\n titleRegex: \"//h1[@class=title-article]/html()\",\r\n authorRegex: \"//a[@class=follow-nickName]/html()\",\r\n releaseDateRegex: \"//div[@class=\'article-bar-top\']/span[@class=\'time\']/text()\",\r\n contentRegex: \"//div[@class=article_content]/html()\",\r\n targetLinksRegex: \".*blog\\\\.csdn\\\\.net/{uid}/article/details/[0-9a-zA-Z]{1,15}\",\r\n tagRegex: \"//span[@class=artic-tag-box]/a[@class=tag-link]/html()\",\r\n header: [\r\n \"Host=blog.csdn.net\",\r\n \"Referer=https://blog.csdn.net/{uid}/article/list/1\"\r\n ],\r\n entryUrls: \'https://blog.csdn.net/{uid}/article/list/{curPage}\'\r\n },\r\n iteye: {\r\n domain: \"{uid}.iteye.com\",\r\n titleRegex: \"//div[@class=blog_title]/h3/a/html()\",\r\n authorRegex: \"//div[@id=blog_owner_name]/html()\",\r\n releaseDateRegex: \"//div[@class=blog_bottom]/ul/li/html()\",\r\n contentRegex: \"//div[@class=blog_content]/html()\",\r\n targetLinksRegex: \".*{uid}\\\\.iteye\\\\.com/blog/[0-9]+\",\r\n tagRegex: \"//div[@class=news_tag]/a/html()\",\r\n header: [\r\n \"Host={uid}.iteye.com\",\r\n \"Referer=http://{uid}.iteye.com/\"\r\n ],\r\n entryUrls: \'http://{uid}.iteye.com/?page={curPage}\'\r\n },\r\n csblogs: {\r\n domain: \"www.cnblogs.com\",\r\n titleRegex: \"//a[@id=cb_post_title_url]/html()\",\r\n authorRegex: \"//div[@class=postDesc]/a[1]/html()\",\r\n releaseDateRegex: \"//span[@id=post-date]/html()\",\r\n contentRegex: \"//div[@id=cnblogs_post_body]/html()\",\r\n targetLinksRegex: \".*www\\\\.cnblogs\\\\.com/{uid}/p/[\\\\w\\\\d]+\\\\.html\",\r\n tagRegex: \"//div[@id=EntryTag]/a/html()\",\r\n header: [\r\n \"Host=www.cnblogs.com\",\r\n \"Referer=https://www.cnblogs.com/\"\r\n ],\r\n entryUrls: \'https://www.cnblogs.com/{uid}/default.html?page={curPage}\'\r\n }\r\n }', '2019-01-21 11:58:12', '2019-01-21 11:58:12');
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (28, 'anonymous', '1', '2019-01-24 19:13:33', '2019-01-25 17:38:12');
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (29, 'editorPlaceholder', '说点什么吧', '2019-01-24 19:13:33', '2019-01-25 17:38:12');
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (30, 'editorAlert', '讲文明、要和谐', '2019-01-24 19:13:33', '2019-01-25 17:38:12');
INSERT INTO `dblog`.`sys_config`(`id`, `config_key`, `config_value`, `create_time`, `update_time`) VALUES (31, 'defaultUserAvatar', '[\r\n \"http://localhost:8443/img/random/user/1.jpg\",\r\n \"http://localhost:8443/img/random/user/2.jpg\",\r\n \"http://localhost:8443/img/random/user/3.jpg\",\r\n \"http://localhost:8443/img/random/user/4.jpg\",\r\n \"http://localhost:8443/img/random/user/5.jpg\",\r\n \"http://localhost:8443/img/random/user/6.jpg\",\r\n \"http://localhost:8443/img/random/user/7.jpg\",\r\n \"http://localhost:8443/img/random/user/8.jpg\",\r\n \"http://localhost:8443/img/random/user/9.jpg\",\r\n \"http://localhost:8443/img/random/user/10.jpg\",\r\n \"http://localhost:8443/img/random/user/11.jpg\",\r\n \"http://localhost:8443/img/random/user/12.jpg\",\r\n \"http://localhost:8443/img/random/user/13.jpg\",\r\n \"http://localhost:8443/img/random/user/14.jpg\",\r\n \"http://localhost:8443/img/random/user/15.jpg\",\r\n \"http://localhost:8443/img/random/user/16.jpg\",\r\n \"http://localhost:8443/img/random/user/17.jpg\",\r\n \"http://localhost:8443/img/random/user/18.jpg\",\r\n \"http://localhost:8443/img/random/user/19.jpg\",\r\n \"http://localhost:8443/img/random/user/20.jpg\"\r\n]', '2019-01-28 16:40:04', '2019-01-28 16:40:04');
# 添加新资源
INSERT INTO `dblog`.`sys_resources` VALUES (74, '编辑器', 'menu', '/editor', 'editor', 68, NULL, 0, 1, '', now(), now());
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.zyd</groupId>
<artifactId>blog</artifactId>
<version>2.1.0.Beta</version>
<packaging>pom</packaging>
<modules>
<module>blog-core</module>
<module>blog-web</module>
<module>blog-admin</module>
<module>blog-spider</module>
</modules>
<groupId>com.zyd</groupId>
<artifactId>blog</artifactId>
<version>2.1.0.Beta</version>
<packaging>pom</packaging>
<modules>
<module>blog-core</module>
<module>blog-web</module>
<module>blog-admin</module>
<module>blog-spider</module>
</modules>
<name>blog</name>
<description>OneBlog for Spring Boot</description>
<name>blog</name>
<description>OneBlog是一款简洁美观、自适应的Java博客系统</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.1.RELEASE</version>
<relativePath/>
</parent>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.1.RELEASE</version>
<relativePath/>
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<maven.test.skip>true</maven.test.skip>
<webmagic.version>0.7.3</webmagic.version>
<jsoup.version>1.10.2</jsoup.version>
<javax.validation.version>2.0.1.Final</javax.validation.version>
<hibernate.validator.version>6.0.9.Final</hibernate.validator.version>
<tomcat.version>8.5.29</tomcat.version>
<excel4j.version>2.1.4-Final</excel4j.version>
<mybatis.version>1.3.2</mybatis.version>
<mapper.version>2.1.0</mapper.version>
<pagehelper.version>1.2.3</pagehelper.version>
<druid.version>1.1.10</druid.version>
<fastjson.version>1.2.44</fastjson.version>
<shiro.spring.version>1.4.0</shiro.spring.version>
<shiro.redis.version>2.4.2.1-RELEASE</shiro.redis.version>
<shiro.freemarker.tags.version>0.1</shiro.freemarker.tags.version>
<qiniu.version>[7.0.0, 7.1.99]</qiniu.version>
<useragentutils.version>1.20</useragentutils.version>
<braum.version>1.0.0-alpha</braum.version>
</properties>
<dependencyManagement>
<dependencies>
......@@ -41,28 +59,28 @@
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-test</artifactId>
<scope>test</scope>
</dependency>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-test</artifactId>
<scope>test</scope>
</dependency>
<!--仅用于升级springboot版本时,提供配置迁移建议-->
<!--<dependency>-->
<!--<groupId>org.springframework.boot</groupId>-->
<!--<artifactId>spring-boot-properties-migrator</artifactId>-->
<!--<optional>true</optional>-->
<!--<groupId>org.springframework.boot</groupId>-->
<!--<artifactId>spring-boot-properties-migrator</artifactId>-->
<!--<optional>true</optional>-->
<!--</dependency>-->
</dependencies>
</dependencies>
<!-- Maven控制Spring Profile -->
<profiles>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册