新闻微服务开发完成,首页微服务开发中

This commit is contained in:
xiongxiaoyang
2020-05-28 18:53:35 +08:00
parent 387d5e862c
commit 7edd79a5f2
23 changed files with 629 additions and 15 deletions

View File

@ -109,7 +109,11 @@
<artifactId>lombok</artifactId>
</dependency>
<!-- 替换默认的HttpURLConnection不支持@RequestBody+ RequestMethod.GET模式-->
<dependency>
<groupId>io.github.openfeign</groupId>
<artifactId>feign-httpclient</artifactId>
</dependency>

View File

@ -0,0 +1,38 @@
package com.java2nb.novel.common.utils;
/**
* 常量类
* @author Administrator
*/
public class Constants {
/**
* 模板路径前缀保存key
* */
public static final String TEMPLATE_PATH_PREFIX_KEY = "templatePathPrefixKey";
/**
* 保存图片到自己的存储介质路径前缀
* */
public static final String LOCAL_PIC_PREFIX = "/localPic/";
/**
* 用户客户端标识保存key
* */
public static final String USER_CLIENT_MARK_KEY = "userClientMarkKey";
/**
* Object Json 缓存存在的最小长度
* */
public static final int OBJECT_JSON_CACHE_EXIST_LENGTH = 5;
/**
* 首页设置的小说数量
* */
public static final int INDEX_BOOK_SETTING_NUM = 32;
/**
* 累积的最大点击量
* */
public static final Integer ADD_MAX_VISIT_COUNT = 10;
}

View File

@ -15,6 +15,11 @@ logging:
config: classpath:logback-boot.xml
feign:
httpclient:
enabled: true