1.可以设置自己的域名的让别人访问的内网穿透工具nat https://natapp.cn;
小型开发直接使用 写好的组件: www.ibootstrap.cn 大型用vue构建
2.微信SDK比较全面的https://github.com/binarywang/weixin-java-tools;
补充: https://github.com/Wechat-Group/weixin-java-tools 小程序账户:2358160247@qq.com 密码:你懂的爱你 微信公众号账户:emmetyang@163.com
密码:你懂的爱你 博客园账户:emmetyang 密码:#你懂的爱你 (updateTime-2019/8/3)
常用抓包工具:fiddler (widows 下) mac(charies ) ---->抓包工具将手机请求代理转发到电脑
常见工具包整合类:
https://www.hutool.cn/ mvn 依赖:
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>4.6.1</version>
</dependency>
having与where的区别
having是在分组后对数据进行过滤.
where是在分组前对数据进行过滤
having后面可以使用聚合函数
where后面不可以使用聚合函数
3.支付比较全的文档:https://github.com/Pay-Group/best-pay-sdk
4.保存对象的 序列化的唯一性,使用 idea GenarateserialVersionUID 插件,生成UID
5.常见的后台部署命令 :
(1)打包跳过测试形成jar或者war包
mvn clean package -Dmaven.test.skip= true
(2)修改打包的名字:使用maven插件
<build>
<!--用于打包的命名-->
<finalName>seller</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
(3) 启动并修改端口:
java-jar -Dserve.port=8098 sell.jar
(4)指定生产环境启动:
java-jar -Dserve.port=8098 -Dspring.profiles.active.prod sell.jar
(5) 后台运行项目:
nohup java -jar seell.jar
6.Array.asList的使用 :
该方法不适用于基本数据类型(byte,short,int,long,float,double,boolean)
List<WxMpTemplateData> data = Arrays.asList(
new WxMpTemplateData("first", "亲,请记得收货。"),
new WxMpTemplateData("keyword1", "微信点餐"),
new WxMpTemplateData("keyword2", "18868812345"),
new WxMpTemplateData("keyword3", orderDTO.getOrderId()),
new WxMpTemplateData("keyword4", orderDTO.getOrderStatusEnum().getMessage()),
new WxMpTemplateData("keyword5", "¥" + orderDTO.getOrderAmount()),
new WxMpTemplateData("remark", "欢迎再次光临!")
);