- 博客(538)
- 资源 (8)
- 论坛 (5)
- 收藏
- 关注
原创 springboot 打包插件spring-boot-maven-plugin打包机制及内部结构分析
springboot 打包插件spring-boot-maven-plugin打包机制及内部结构分析
2021-01-16 17:58:21
25
原创 mac m1 mvn No compiler is provided in this environment
在idea中,点击compile啥的都行,在命令行执行mvn clean compile 或者 mvn clean package 都报[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project fx-mybatis-plus-generator: Compilation failure[ERROR] No comp
2021-01-15 21:11:49
17
原创 Spring Boot 2.x 集成 Micrometer + Prometheus + Grafana监控
在使用前先了解概念:micrometer埋点(Spring boot 2.X metrics)micrometer自定义metrics给你的SpringBoot做埋点监控--JVM应用度量框架MicrometerSpring Boot 使用 Micrometer 集成 Prometheus 监控 Java 应用性能
2021-01-11 10:32:06
29
原创 Springboot 集成 micrometer(actuator/prometheus) 报 404
百度半天也没找到原因,也可能是我搜索的方法不对。Spring Boot 使用 Micrometer 集成 Prometheus的方案都差不多,例如 链接按各种说明,主要2处:1.pom加 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </depende
2021-01-10 10:47:29
58
原创 AccessibilityService+GestureDescription+AccessibilityNodeInfo坐标计算+点击
首先在xml中增加配置<?xml version="1.0" encoding="utf-8"?><accessibility-service xmlns:android="http://schemas.android.com/apk/res/android" android:accessibilityEventTypes="typeAllMask" android:accessibilityFeedbackType="feedbackGeneric" an
2020-12-30 09:37:01
108
原创 Postman 编码编程案例
postman使用JS编码参数时间格式化Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "H+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds
2020-12-16 11:53:32
75
原创 Vue 限制输入正整数(使用自定义命令directive)
自定义JSlimitPositiveInt.jsimport Vue from 'vue'// 针对 el-input做的限制,只能输入正整数const limitPositiveInt = Vue.directive('limitPositiveInt', { bind: function (el) { const input = el.getElementsByTagName('input')[0] input.onkeyup = function (e) { .
2020-12-02 14:50:17
127
原创 Sentry+Springboot+Vue+Android配置流程
SpringBoot第一种配置方法,会catch exception然后上报到Sentrysentry 和sping boot 主动发送异常消息第二种配置方法,上报Log到SentrySpring Boot实战之配置使用Sentry上报错误日志(二)目前采用第一种,测试代码 /** * 根据id查询 */ @ApiOperation(value = "根据id查询数据") @GetMapping(value = "/{id}") public C
2020-11-30 16:42:36
96
原创 Postman导入Swagger链接,使用Postman调试
用惯了Postman,回到swagger比较变扭,Postman可以切换环境,记录变量,小规模编码,比swagger灵活很多。其实用Postman导入swagger接口,可以直接用postman直接调试,流程启动项目,找到swagger地址API-docs地址,该路径会返回JSON格式数据,应用中Swagger渲染API文档页面的所有数据就是来源于此,Postman也是可以通过这些数据来渲染API文档页面打开Postman-File-import,url输入之前复制的地址,按默认值导入
2020-11-24 10:18:08
127
原创 mybatis plus join 处理(ew.sqlSegment)连表查询
业务场景:任务-分组表 tms_task_customer_group :task, group_id分组表 cms_customer_group :id, group_name返回:task_id, group_id, group_namexml 配置 <resultMap id="ExtendResultMap" type="com.fx.cloud.tiny.modules.tms.model.TmsTaskCustomerGroup"> <
2020-11-15 23:14:58
154
原创 mybatis plus 枚举类型处理(@EnumValue)
案例:男,女,后台存储的是1,2,前端展示的是男女一、创建枚举类,在需要存储数据库的属性上添加@EnumValue注解,在需要前端展示的属性上添加@JsonValue注解;package com.demo.mybatisplus.constant;import com.baomidou.mybatisplus.annotation.EnumValue;import com.fasterxml.jackson.annotation.JsonValue;public enum SexEnum
2020-11-15 16:30:46
952
原创 rabbitmq 命令/日志/后台说明
#查看插件列表rabbitmq-plugins list#启动Trace插件rabbitmqctl trace_on#启动日志插件命令rabbitmq-plugins enable rabbitmq_tracing#停止rabbitmqctl stop#重启rabbitmq-server restartLinux下启动rabbitmq报错:./rabbitmq-server: line 80: erl: command not found的解决办法...
2020-11-13 17:28:10
136
原创 RabbitMQ+MQTT+Springboot+Android开发
springboot + rabbitmq 做智能家居,我也没想到会这么简单RabbitMQ Springboot 使用说明/常见问题
2020-11-12 16:34:47
52
原创 RabbitMQ Springboot 使用说明/常见问题
我们先来了解下RabbitMQ中的相关概念,这里以5种消息模式中的路由模式为例。 标志 中文名 英文名 描述 P 生产者 Producer 消息的发送者,可以将消息发送到交换机 C 消费者 Consumer 消息的接收者,从队列中获取消息并进行消费 X 交换机 Exchange 接收生产者发送的消息,并根据路由键发送给指定队列 Q 队列 Queue 存储从交..
2020-11-12 10:16:22
152
原创 xxl-job 调度中心/执行器/Springboot
分布式任务调度平台之 xxl-job配置部署分布式任务调度平台XXL-JOB搭建教程xxl-job-admin集成nacos配置中心改造官网
2020-11-10 18:25:45
505
原创 mybatis-plus的使用及生成自定义模板(包含Vue,JS)
mybatis-plus的使用 ------ 入门官网mall整合Swagger-UI实现在线API文档
2020-11-10 14:46:25
383
3
原创 power bi 笔记
入门教程第一篇:Power BI数据可视化概述第二篇:Power BI数据可视化之基于Web数据的报表制作(经典级示例)图表效果精选 | 实用炫酷的Power BI自定义图表具体问题Network Navigator Chart 教程,怎么用中文的没找到,英文的Create a Network Graph in Power BI...
2020-10-31 21:03:38
53
原创 AccessibilityService的微信运动自动点赞(mac 环境开发)
demo地址:https://github.com/fastxbox/AccessibilityServiceMonitor效果其中用到工具uiautomatorviewer查看微信视图节点(Node),mac上的路径是:/Users/用户名/Library/Android/sdk/tools/bin微信新版本的节点跟远demo不一致,用uiautomatorviewer重新查找node(有clickable属性)核心代码public class WeChatMotio
2020-10-22 20:32:18
135
原创 docker-compose mysql后命令行查询乱码(问号)
docker 启动用,用命令进入mysql容器,查询数据乱码(问号)#进入mysql dockerdocker exec -it 50bde2256149 bash#登陆mysqlmysql -uroot -proot#查询use mallselect * from product limit 1\Gselect 后乱码按网上教程查询默认字符集#查询默认字符集 show variables like 'character_set%';发现charac.
2020-10-18 22:07:58
132
原创 spring boot & webstorm+vue开发
webStrom调试debug vue + live editVue + Spring Boot 项目实战(二):使用 CLI 搭建 Vue.js 项目Vue2.0 新手入门 — 从环境搭建到发布
2020-10-13 14:37:41
116
原创 API网关比较:NGINX vs. ZUUL vs. Spring Cloud Gateway vs. Linkerd
API网关比较:NGINX vs. ZUUL vs. Spring Cloud Gateway vs. Linkerd(转)
2020-10-10 17:10:17
80
原创 nacos 获取配置失败 Could not resolve placeholder
百度一下,基本都是让检查Data Id是否正确 Group是否正确 重启Intellij Clean,install 重启Nacos服务器参考文档说的基本都没问题,其实更快的检查方法,是用命令看看ID,服务器是否有问题发布配置curl -X POST "http://127.0.0.1:8848/nacos/v1/cs/configs?dataId=nacos.cfg.dataId&group=test&content=helloWorld"发布后,可以看.
2020-10-09 18:03:29
920
原创 maven 命令及生命周期
定义: 生命周期是包含在一个项目构建中的一系列有序的阶段举个例子来说就是maven 对一个工程进行:验证(validate)……编译源码(compile)……编译测试源码(test-compile)……单元测试(test)……打包(package)……安装至本地仓库(install)复制到远程仓库(deploy)maven生命周期...
2020-10-08 13:13:10
64
原创 java getResourceAsStream 读取 resource下的资源xml
目录:读取文件 InputStream is = Generator.class.getResourceAsStream("/config/generatorConfig.xml");参考文档:Maven项目中读取src/main/resources目录下的配置文件
2020-10-04 18:29:32
60
原创 移动端、H5、微信小程序、百度小程序、支付宝小程序、头条小程序多端框架全面测评
小程序多端框架全面测评:chameleon、Taro、uni-app、mpvue、WePYchameleon:https://github.com/didi/chameleon mpvue:https://github.com/Meituan-Dianping/mpvue Taro:https://github.com/NervJS/taro uni-app:https://github.com/dcloudio/uni-app WePY:https://github.com/Tenc...
2020-10-03 17:08:24
228
原创 Intelij idea mapper/dao.xml 一直循环加载
启动项目的时候,mapper配置文件一直循环加载,项目也没有报错,一般是xml里sql语句有问题。解决方法:新建一个类,继承 org.mybatis.spring.SqlSessionFactoryBean 类,重载 buildSqlSessionFactory 方法,捕获 NestedIOException 异常,并打印异常public class FxSqlSessionFactoryBean extends SqlSessionFactoryBean { @Override
2020-09-28 20:08:34
173
原创 Rk3288 android USB双摄像头录制视频
Rk3288板子插2个摄像头,其中一个做监控用,需要录制视频,代码如下public class Recorder { private String TAG = Recorder.class.getSimpleName(); private static final int MEDIA_RECORDER_REQUEST = 0; private Camera mCamera; private TextureView mPreview; private Media
2020-09-15 11:49:13
192
原创 android 基础/开源框架/控件/UI
https://github.com/topics/androidhttps://github.com/wasabeef/awesome-android-ui
2020-08-24 22:16:12
60
原创 android 搭建http服务器AndroidAsync
https://github.com/koush/AndroidAsync搭建Android上的服务器
2020-08-24 22:12:30
107
原创 SpringBoot + Elasticsearch/Logstash/Kibana 日志收集展示
ELK中各个服务的作用Elasticsearch:用于存储收集到的日志信息; Logstash:用于收集日志,SpringBoot应用整合了Logstash以后会把日志发送给Logstash,Logstash再把日志转发给Elasticsearch; Kibana:通过Web端的可视化界面来查看日志。SpringBoot应用整合ELK实现日志收集...
2020-08-22 10:09:44
86
原创 Spring boot/mvc http request post 参数
SpringBoot - 获取POST请求参数详解(附样例:表单数据、json、数组、对象)
2020-08-12 11:06:39
71
原创 Spring boot images调优/缩小尺寸
用单层镜像方法优化Docker中的Springbootdocker springboot项目镜像优化Docker优化Springboot应用程序
2020-08-11 17:03:45
125
原创 使用UCloud docker镜像库push/pull
比较简单,官方文档https://docs.ucloud.cn/uhub/guide//本地docker login uhub.service.ucloud.cn -u xxxx@xxxx.comdocker tag springboot/ltfxpos uhub.service.ucloud.cn/ltfxpos/ltfxpos:tagdocker push uhub.service.ucloud.cn/ltfxpos/ltfxpos:tag// 服务器上docker .
2020-08-11 15:59:30
174
原创 Centos 7 Docker Compose 编排/处理hosts问题
之前使用docker命令进行部署,发现docker里的hosts跟centos里的hosts不一致,导致代码里通过内网域名连接Mysql出了问题,网上查了一下,有4个办法Docker修改hosts方法最终采用了Docker-Comose的方法具体安装和原理见:docker-compose详解Docker-compose使用全解Spring boot 里的Docker file# 基于openjdk 镜像FROM java:7# 声明需要暴露的端口EXPOSE 808.
2020-08-11 11:22:10
139
原创 linux 查看端口占用并查找进程
启动项目的时候发现端口被占用,记录一下查找并关闭进程流程netstat命令netstat -an | grep 33063306替换成需要grep的端口号lsof命令通过list open file命令可以查看到当前打开文件,在linux中所有事物都是以文件形式存在,包括网络连接及硬件设备。lsof -i:80-i参数表示网络链接,:80指明端口号,该命令会同时列出PID,方便kill查看所有进程监听的端口sudo lsof -i -P | grep -i "
2020-08-06 22:30:14
96
symbian 论坛大大hoolee的QA CHM版
2010-01-21
linzhiji的留言板
发表于 2020-01-02 最后回复 2020-01-02
这个网站的大图浏览是怎么搞的?
发表于 2012-05-29 最后回复 2012-05-31
这个网站的大图浏览是怎么搞的?
发表于 2012-05-28 最后回复 2012-05-28
n97 如何禁止屏幕旋转
发表于 2010-01-20 最后回复 2012-05-28
如何小图拼大图
发表于 2009-08-18 最后回复 2009-08-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人 TA的粉丝