mirror of
https://github.com/201206030/novel-cloud.git
synced 2025-06-25 06:26:39 +00:00
新闻微服务开发完成,首页微服务开发中
This commit is contained in:
@ -109,7 +109,11 @@
|
||||
<artifactId>lombok</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- 替换默认的HttpURLConnection不支持@RequestBody+ RequestMethod.GET模式-->
|
||||
<dependency>
|
||||
<groupId>io.github.openfeign</groupId>
|
||||
<artifactId>feign-httpclient</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
|
||||
|
@ -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;
|
||||
}
|
@ -15,6 +15,11 @@ logging:
|
||||
config: classpath:logback-boot.xml
|
||||
|
||||
|
||||
feign:
|
||||
httpclient:
|
||||
enabled: true
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user