Fetch the repository succeeded.
This action will force synchronization from Exrick/xmall, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
作者本科毕业设计项目 期待您的捐赠支持
Spring Cloud版
微信小程序APP
机器学习笔记
xmall
文件夹提供部分依赖与sql文件
generatorSqlmapCustom
文件夹为 Mybatis Generator 逆向生成工具,且已配置好maven插件git clone https://github.com/Exrick/xmall.git
xmall-common - utils
中找到修改,XPay邮箱配置在 manager-service与sso-service
中File-Open
直接打开xmall项目,点击右下角 Import Changes
等待安装完依赖即可xmall
数据库,运行sql文件,注意在有 db.properties
的模块中修改你的数据库连接配置mvn install
命令xmall-parent
xmall-common
以外其它所有6个服务,且都已配置好Tomcat插件, 执行命令 mvn tomcat7:run
或在IDEA中使用插件(View - Tool Buttons - 右侧菜单Maven Projects - tomcat7 - tomcat7:run
)运行即可,当然可自行配置ES-IK分词插件词典库扩展
http:localhost:8888/getDictList
和 http:localhost:8888/getStopDictList
,将以上2个接口配置进IK插件扩展配置文件{conf}/analysis-ik/config/IKAnalyzer.cfg.xml 或者 {plugins}/elasticsearch-analysis-ik-*/config/IKAnalyzer.cfg.xml中即可,示例:<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<comment>IK Analyzer 扩展配置</comment>
<!--用户可以在这里配置远程扩展字典 -->
<entry key="remote_ext_dict">http:localhost:8888/getDictList</entry>
<!--用户可以在这里配置远程扩展停止词字典-->
<entry key="remote_ext_stopwords">http:localhost:8888/getStopDictList</entry>
</properties>
限流
xmall-front-web
中已配置限流,配置文件 resource.properties
中可配置全局限流,示例:
#启用全局限流
xmall.rateLimit.enable=true
#每1秒内
xmall.rateLimit.timeout=1000
#限制10个请求
xmall.rateLimit.limit=10
指定方法限流注解
@RateLimiter(limit = 1, timeout = 5000)
支持多维度IP、uid等限流 详见代码
Sign in for post a comment
Comments ( 0 )