- 博客(13)
- 资源 (6)
- 收藏
- 关注
原创 DevExpress.Xpf.Map 地图 multi-layers 自定义 layer 的 z-index
DevExpress.Xpf.Map
2022-12-14 14:25:14 426
原创 RSA公私钥生成工具类
import java.io.File;import java.io.IOException;import java.nio.file.Files;import java.security.*;import java.security.spec.InvalidKeySpecException;import java.security.spec.PKCS8EncodedKeySpec;import java.security.spec.X509EncodedKeySpec;import jav.
2021-08-24 10:21:19 635
原创 使用@Validated校验List接口参数的两种方式
使用@Validated校验List接口参数的两种方式注: 不仅限于两种,此处只列举了两种创建springboot项目, 并添加 spring-boot-starter-validation jar包<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifactId...
2021-08-03 08:51:54 11820 5
原创 Linux 下载百度网盘文件
Linux 下载百度网盘文件1. 准备环境: centos7.2 python2.7+ pip2. 安装工具pip install requests -i https://pypi.doubanio.com/simplepip install bypy -i https://pypi.doubanio.com/simple3. 授权命令行输入 bypy info, 如下:[root@iZ8vbdz4rng8x76417crnnZ setuptools-1.4.2]# bypy info
2021-07-30 18:19:12 4032 2
原创 HttpClientUtil
import org.apache.http.HttpStatus;import org.apache.http.NameValuePair;import org.apache.http.client.entity.UrlEncodedFormEntity;import org.apache.http.client.methods.CloseableHttpResponse;import org.apache.http.client.methods.HttpGet;import org.apac.
2021-06-25 10:10:09 98
原创 SpringCloud Nacos 自定义负载均衡规则
import com.alibaba.cloud.nacos.ribbon.NacosServer;import com.alibaba.nacos.api.naming.pojo.Instance;import com.netflix.client.config.IClientConfig;import com.netflix.loadbalancer.*;import lombok.extern.slf4j.Slf4j;import org.apache.commons.collections
2021-03-22 17:49:26 1385
原创 springcloud获取注册中心服务列表
@Autowiredprivate DiscoveryClient discoveryClient;List<String> services = discoveryClient.getServices();log.info("Services: {}", services);if(CollectionUtils.isNotEmpty(services)){ for(String service : services){ List<ServiceInsta
2021-03-19 16:50:28 1812
原创 你对OOP的理解?
# 你对OOP的理解?很多程序员在面试过程中都会被问道对面向对象编程编程的理解,而且是无论是初级或是中级还是高级。这是一个简单的问题,很多时候我们仅仅只是照着概念背了一下,然而并没有回答到面试官想要的答案,有的面试官会顺着的回答的结果继续提出问题或者引导你给出想要的答案,而有的面试官则不会。其实这个问题面试官主要是想知道你在实际中的应用及理解,因为只是概念大多数人都能回答上来。所以主要围绕以下两点回答基本上这个问题就差不多了:1. OOP概念及你的理解。2. OOP的优势及你在实际编程中的应用和理解
2021-02-19 17:23:37 314
原创 GitFlow 代码版本管理
GitFlow 代码版本管理Git的优点 现在大多数公司的研发团队都在Git作为代码管理工具,使用CVS、SVN等已经很少。至于为什么选用git,参考《Git、CVS、SVN比较》。Git主要有以下优点:Git是分布式的,本地库包含了远程库的所有内容;Git有优秀的分支模型,利于管理;Git由于代码都在本地,打分支和合并分支方便快速,且代价小。当然Git的有点还有很多,感兴趣的,可以去看一下Git本身的设计,内在的架构体现了很多的优势,不愧是出资天才程序员Linus (Linux之父) 之
2021-02-11 16:59:21 318
原创 Git常用操作命令
Git常用操作命令克隆仓库:git clone https://github.com/spring-projects/spring-framework.git更新仓库:git pull提交更改:增加更改git add .提交到本地版本仓库库git commit -m "test"提交到远程仓库git push查看状态:git status查看修改: git diff [file]查看历史:git log查看分支:git branch/git branch -a切换分支:git chec
2021-02-02 11:37:46 49
原创 Java中finally使用注意事项
Java中finally使用注意事项 在Java中try-catch-finally是用来做异常处理的,用法比较简单,但有些细节需要注意:1. 在finally中使用return如果在finally语句块中使用return语句,那么即使try-catch语句块中有return语句操作,也不会立马返回结果,而是在执行完finally语句块中的语句再返回。此时问题就产生了:如果finally语句块中存在return语句,则会直接返回finally语句块中的结果,从而无情的丢弃了try语句块中的返回值。
2021-02-01 13:35:40 179
转载 IDEA破解 2017 IDEA license server 激活
进入ide主页面,help-register-license server,然后输入 http://idea.iteblog.com/key.php原文地址
2017-04-25 09:07:40 154
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人