![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
后端
junior_programmer
这个作者很懒,什么都没留下…
展开
-
编程启动zookeeper和kafka broker
maven 依赖 <!-- https://mvnrepository.com/artifact/io.dropwizard.metrics/metrics-core --> <dependency> <groupId>io.dropwizard.metrics</groupId> <artifactId>metrics-core</artifactI...原创 2020-06-05 10:01:29 · 197 阅读 · 0 评论 -
windows环境 rabbitmq 启动关闭脚本
set ERLANG_HOME=D:\Programs\erl10.4set PATH=%PATH%;%ERLANG_HOME%\bincd D:\Programs\RabbitMQServer\rabbitmq_server-3.8.3\sbin:: 服务地址在http://localhost:15672/call rabbitmq-plugins enable rabbitm...原创 2020-04-17 14:26:35 · 514 阅读 · 0 评论 -
Mybatis参考
https://mybatis.org/mybatis-3/zh/getting-started.html原创 2020-04-13 16:23:32 · 154 阅读 · 0 评论 -
获取泛型参数类型
public abstract class AbstractEventHandler<T extends BaseEvent> { /** * 子类获取抽象父类的泛型参数类型 * * @return {@code Class<T>} * @author fengxin * @date 2020/3/3...原创 2020-04-13 15:13:30 · 315 阅读 · 0 评论 -
RabbitMq 实现消息自动序列化和反序列化的配置
配置@Configurationpublic class RabbitMqConfig implements RabbitListenerConfigurer { //以下配置RabbitMQ消息服务 @Autowired public ConnectionFactory connectionFactory; @Bean public De...原创 2020-03-27 17:52:44 · 3945 阅读 · 7 评论 -
分布式版本jdbc
当当网 Sharding Sphere 分布式版本jdbc原创 2020-03-10 15:31:57 · 132 阅读 · 0 评论 -
ZipKin链路追踪
ZipKin官网ZipKin链路追踪介绍原创 2020-03-10 15:31:09 · 251 阅读 · 0 评论 -
编程思想学习资源
// 蚂蚁金服王益推荐The Art of Unix ProgrammingStructure And Interpretation of Computer ProgramsPaul Graham 博客原创 2020-03-10 15:23:07 · 142 阅读 · 0 评论 -
maven install命令 指定模块 跳过测试
mvn install -pl unimall-launcher -DskipTests=truemvn install -pl unimall-launcher -Dmaven.test.skip=true原创 2020-03-10 10:29:49 · 2585 阅读 · 0 评论 -
Windows系统查看指定端口占用情况
// 查看所有端口占用进程netstat -ano// 查看80端口占用进程netstat -aon|findstr ":80"记下PID 后 进入 :任务管理器-》详细信息 按需停止对应进程原创 2020-02-29 12:30:31 · 271 阅读 · 0 评论 -
Spring配置项明细查询
// 配置项明细可在如下jar包中找到 也可在idea中按住ctrl加鼠标点击实现从配置项跳转到配置类.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.2.4.RELEASE\spring-boot-autoconfigure-2.2.4.RELEASE.jar...原创 2020-01-21 17:57:19 · 272 阅读 · 0 评论 -
python3 简化条件语句的两种方法
# -----简化条件语句的两种方法----- # valt if condition else valf def test_if(b): return 'true' if b else 'false' # condition and valt or valf def test_if2(b): return ...原创 2020-01-14 15:53:04 · 1327 阅读 · 0 评论 -
Swagger注解的规范用法 提高前后端及测试配合效率
详解https://blog.csdn.net/xiaojin21cen/article/details/78654652###用法1.@ApiParam结合JAX-RS注解或Sping web.bind注解组合使用代码样例: @ApiOperation(value = "测试swagger注解") @PostMapping("/testSwagger/{id}...原创 2019-12-24 15:42:38 · 601 阅读 · 0 评论 -
ZeroMQ 消息模式简介 ——java版
本介绍基于以下依赖 <dependency> <groupId>org.zeromq</groupId> <artifactId>jeromq</artifactId> <version>0.5.1</version> ...原创 2019-12-20 10:59:46 · 1031 阅读 · 0 评论 -
HttpURLConnection post请求 传参数
public static JSONObject post(String urlString, ParamInfo paramInfo) throws Exception { URL url = new URL(urlString); JSONObject jsonObject = new JSONObject(); HttpURLConn...原创 2019-12-08 17:29:43 · 3345 阅读 · 0 评论 -
DAO 相关代码生成器
http://java.bejson.com/generator/原创 2019-12-06 16:21:04 · 169 阅读 · 0 评论 -
java excel文件 导入导出
easyexcel导出时可通过注解添加复杂header内存管理优秀 ,读大文件也不容易出现OOM具体用法参考源码中的demo最新文档https://alibaba-easyexcel.github.io/index.htmlgithub地址 (源码中包含使用demo)https://github.com/alibaba/easyexceleasypoi...原创 2019-12-06 09:01:50 · 574 阅读 · 0 评论 -
java学习日志5——esper30分钟入门example
esper官网 可下载jar包和documentationhttp://www.espertech.com/esper。eclipse 新建mawen项目test。在 pom.xml文件中添加如下依赖: <dependencies> <dependency> <groupId>com.espertech</groupId...原创 2019-05-17 17:23:16 · 1243 阅读 · 2 评论 -
Thinking In Java TypeInfo 动态代理
import java.lang.reflect.InvocationHandler;import java.lang.reflect.Method;import java.lang.reflect.Proxy;class DynamicProxyHandler implements InvocationHandler { private Object proxied = ne...原创 2019-06-29 09:38:43 · 99 阅读 · 0 评论 -
pip安装python依赖
进入 python安装根目录的 scripts目录 打开cmd从镜像下载依赖pip install -ihttp://pypi.douban.com/simplenumpy检查更新pip list --outdated更新pip install --update numpypip install -ihttp://pypi.douban.com/sim...转载 2019-10-21 09:46:08 · 711 阅读 · 0 评论 -
JAVA学习日志8——反射获取内部类的实例
package test;import java.lang.reflect.Constructor;import java.lang.reflect.InvocationTargetException;import java.util.ArrayList;import java.util.HashMap;import java.util.Map;import com.espert...原创 2019-10-21 10:29:42 · 98 阅读 · 0 评论 -
python3 django
官方中文文档https://docs.djangoproject.com/zh-hans/2.1/安装django进入python根目录 Scripts文件夹 ,打开cmdpip install -ihttp://pypi.douban.com/simpledjango// 创建django project进入自选目录(存放django project的目录),打开c...原创 2019-10-22 11:50:30 · 75 阅读 · 0 评论 -
python logging 实现日志分级输出到文件的全局配置(详细)
import loggingimport logging.configimport logging.handlersimport osimport refrom enum import Enum,unique@uniqueclass DirMode(Enum): CONFIG = 0 PACKAGE = 1# """# 日志等级:使用范围## FATA...原创 2019-11-03 13:35:56 · 3564 阅读 · 0 评论 -
python Decimal 改变运算精度
import decimal # 设置运算精度为最多保留4位有效数字(不一定是4为小数 decimal.getcontext().prec = 4a = decimal.Decimal('1.7828648246284632')b = decimal.Decimal('10.0')d = a / bprint(d) # 预期输出的精度为4位有效数字 # 恢复默认运算精...原创 2019-12-01 10:59:01 · 1971 阅读 · 2 评论 -
JAVA学习日记2——JDBC连接mysql
安装配置mysql8下载mysql8:https://dev.mysql.com/downloads/file/?id=476233使用手册:https://dev.mysql.com/doc/refman/8.0/en/在安装目录D:\Program Files\mysql(读者可根据自己实际安装目录修改) 下添加 my.ini配置文件,写入配置如下:[mysqld]# 设...原创 2019-04-24 13:48:27 · 184 阅读 · 0 评论 -
JAVA学习日记1——配置JDK12,连接Access数据库
配置JDK12官网下载链接:https://www.oracle.com/technetwork/java/javase/downloads/index.htmljdk12不会自动安装jre,在安装目录下打开cmd运行:bin\jlink.exe --module-path jmods --add-modules java.desktop --output jre 手动生成jrec...原创 2019-04-21 22:26:53 · 685 阅读 · 0 评论 -
python自定义包及模块的导入
把自定义模块文件或包所在目录直接加入环境变量import sysmoduledir='这里填模块或包的目录'sys.path.append(moduledir)#设置工作目录import osworkdir='这里填工作区目录' os.chdir(workdir)#把自定义模块的路径直接加入环境变量import sysmoduledir=wor...原创 2017-11-15 11:10:52 · 669 阅读 · 0 评论