为什么需要代码分离? 为了将代码分成多个bundle,并灵活定制加载策略(按需加载,并行加载),从而大大提升应用的加载速度 如何代码分离? 1、入口起点:使用entry配置手动的分离代码 2、放置重复:使用SplitChunkPlugin去重和分离chunk 3、动态导入:通过在代码中使用动态加载模 ...
分类:
Web程序 时间:
2020-11-20 11:42:55
阅读次数:
13
1.在项目springcloud下,新建微服务product-data-service 2.修改pom.xml文件 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSche ...
分类:
编程语言 时间:
2020-11-19 12:04:49
阅读次数:
7
privateStringshareQrCode(Stringcontent){//获取底图Stringpath="/template/background.png";InputStreaminputStream=this.getClass().getResourceAsStream(path);QrConfigconfig=newQrConfig(118,118);//设置边
分类:
编程语言 时间:
2020-11-18 13:13:19
阅读次数:
13
private void Load_Control_ReCombine<T>(List<T> list, string propertyName, string RecombineID) { try { FieldInfo fieldInfo = typeof(T).GetField(propert ...
分类:
其他好文 时间:
2020-11-17 12:56:16
阅读次数:
24
读卡器:ACR122U,主机环境:ubuntu 20.00 1.apt install libnfc-bin 2.apt install libpcsclite1 3.apt install vim 4.vi /etc/modprobe.d/blacklist-libnfc.conf 在文件尾增加: ...
分类:
编程语言 时间:
2020-11-17 12:28:21
阅读次数:
10
进程间通讯测试 from multiprocessing import Process,Pipe,Queue def read_pipe(output,input): output_p,input_p = output,input while True: try: output_p.recv() e ...
分类:
系统相关 时间:
2020-11-16 14:00:24
阅读次数:
23
Swagger-UI简介 Swagger-UI Swagger-UI是HTML, Javascript, CSS的一个集合,可以动态地根据注解生成在线API文档。 常用注解 @Api:用于修饰Controller类,生成Controller相关文档信息 @ApiOperation:用于修饰Contr ...
分类:
编程语言 时间:
2020-11-16 13:40:39
阅读次数:
13
1 RABC权限管理 1.1 表关系分析 1.2 表设计 1.2.1 用户表 账号、姓名、邮箱、添加时间、最后登录时间、账号是否禁止登录 1.2.2 角色表 商品管理员、订单管理员、超级管理员 1.2.3 资源列表 储存是路径正则 资源分类:商品模块、订单模块、营销模块、权限模块、内容模块、其他模块 ...
分类:
其他好文 时间:
2020-11-16 13:37:04
阅读次数:
7
Exception 分两种: 编译时异常和RuntimeException. 编译时异常必须要处理。 异常处理的五个关键字:throw,throws,try..catch,finally 1.使用throw抛出异常: NullPointerException和 ArrayIndexOutOfBoun ...
分类:
其他好文 时间:
2020-11-16 13:11:27
阅读次数:
3
@GetMapping("/selectIp") public HashMap<String, String> selectIp() { String ipHostAddress = ""; try { Enumeration<NetworkInterface> allNetInterfaces = ...
分类:
编程语言 时间:
2020-11-16 13:09:14
阅读次数:
9