
简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
第一步:将域名解析到虚拟主机的ip第二步:访问域名,就是访问虚拟主机下的wwwroot根目录第三步:如在虚拟主机创建一个site目录,并放入网站第四步:如要访问到site目录下的网站,就应该访问 "域名/site"...
通过构造函数注入进项目,将JedisFactory修改为JedisPoolFactory
第一种:centos中使用systemctl stop firewalld.service停止防火墙。 没有解决第二种:设置延时的时候记得乘以1000,因为默认为微秒【redisConfig.getTimeout()*1000】package com.jack.seckill.redis;import org.springframework.beans.factory.annotat...
mycat是阿里巴巴开发出来的分库分表的中间件第一步:系统初始化,把秒杀商品表库存数量加载到rediscontoller实现InitializingBean类,重写afterPropertiesSet方法public class SeckillController implements InitializingBean{private Map<...
秒杀步骤:1、判断用户是否登陆2、在秒杀商品表里判断库存是否足够@Select("select g.*,sg.stock_count,sg.start_date,sg.end_date,sg.seckill_price from seckill_goods sg left join goods gon sg.goods_id=g.id where g.id=#{goodsId}"...
Base64.encode(json)String base=Base64.decode(jsonResult).toString();包使用的是import cn.hutool.core.codec.Base64;
import java.util.HashMap;import java.util.Map;import net.sf.json.JSONObject;public class Transfer {public static void main(String[] args) {Map map = new HashMap();...
//将json字符串写入到json文件中FileWriter fw = new FileWriter(new File(System.getProperty("user.dir") +"\\src\\main\\resources\\jsonfile\\create.json"));BufferedWriter bw = new BufferedWriter(fw);bw.wr...
出线TypeError: Cannot read property 'xxx' of undefined,出现这种错误的原因是你调用该方法或函数的字符串或数组、对象等等出现了为空的情况,加一个判断就好了。







