1. Spring Cloud Alibaba 介绍 Spring Cloud Alibaba 为分布式应用程序开发提供了一站式解决方案。它包含了开发分布式应用程序所需的所有组件,使得你可以轻松地使用Spring Cloud开发应用程序。 使用Spring Cloud Alibaba,只需要添加一些 ...
分类:
编程语言 时间:
2020-01-13 10:47:01
阅读次数:
143
<?php header("Content-type:text/html;charset=utf-8"); abstract class msg{ protected $send = null; public function __construct($send){ $this->send = $s ...
分类:
Web程序 时间:
2020-01-12 18:34:33
阅读次数:
137
第一种:普通for循环插入 @Test public void testInsertBatch2() throws Exception { long start = System.currentTimeMillis(); User user; SqlSession sqlSession = sqlS ...
分类:
其他好文 时间:
2020-01-12 09:26:02
阅读次数:
81
使用Qt的https(get,post,put等)请求时报 错误。 开发环境 Windows10 64位 Qt 5.12.1 MSVC 2017编译器(版本:15.0) 发现问题 在带开发环境的电脑上运行没问题,而移植到其他系统则有问题,报SSL错误,导致https请求不工作。 问题分析 1. 根据 ...
分类:
Web程序 时间:
2020-01-11 23:57:14
阅读次数:
320
实现不修改原代码,扩展新功能 <?php header("Content-type:text/html;charset=utf-8"); /** * db接口 * 实现连接数据库函数conn */ interface db { function conn(); } /** * 工厂接口 * 实现创建 ...
分类:
Web程序 时间:
2020-01-11 22:04:53
阅读次数:
76
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Dapper; using System.Data.SqlClient; ...
分类:
其他好文 时间:
2020-01-11 21:59:35
阅读次数:
78
// 工厂模式 function Factory(){ let obj = {}; obj.name = '张三'; obj.fn = function(){ console.log("fan") } return obj; } /* 用中文语言可以理解为 创建原料 加工原料 出场原料 */ ...
分类:
其他好文 时间:
2020-01-11 20:43:58
阅读次数:
85
一、在pom文件中添加依赖 1 <!-- 集成redis --> 2 <dependency> 3 <groupId>org.springframework.boot</groupId> 4 <artifactId>spring-boot-starter-data-redis</artifactId ...
分类:
编程语言 时间:
2020-01-11 18:08:46
阅读次数:
905
1、修改/etc/config/network option macaddr 00:01:02:03:04:05 2、写入到factory,永久性生效 ...
分类:
系统相关 时间:
2020-01-11 11:27:13
阅读次数:
117
一、Spring IoC容器概述 1.依赖反转(依赖注入):依赖对象的获得被反转了。 如果合作对象的引用或依赖关系的管理由具体对象来完成,会导致代码的高度耦合和可测试性的降低,这对复杂的面向对象系统的设计是非常不利的。 在Spring中,IoC容器是实现依赖控制反转这个模式的载体,它可以在对象生成或 ...
分类:
编程语言 时间:
2020-01-09 22:25:13
阅读次数:
74