摘要: 对象转json 1. JSONObject jsonObject1 = (JSONObject)JSONObject.toJSON(iotDeviceOnline.getData()); //fastjson 对象转json 2. net.sf.json.JSONObject jsonObject2 阅读全文
posted @ 2021-09-01 15:51 liberalartsy 阅读(38) 评论(0) 推荐(0)
摘要: 1.服务器配置 服务器命令: java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=5005,suspend=n -jar XXX.jar //address = 5005 端口和idea保持一致 后面是jar包 idea配置: 添加 阅读全文
posted @ 2021-08-04 11:01 liberalartsy 阅读(108) 评论(0) 推荐(0)
摘要: pom <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>1.3.2</version></dependency> 阅读全文
posted @ 2021-06-16 10:55 liberalartsy 阅读(852) 评论(0) 推荐(0)
摘要: 1.依赖 <dependency> <groupId>net.sf.json-lib</groupId> <artifactId>json-lib</artifactId> <version>2.4</version> <classifier>jdk15</classifier></dependen 阅读全文
posted @ 2021-06-10 13:47 liberalartsy 阅读(594) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/cocoa_geforce/article/details/111029825 阅读全文
posted @ 2021-06-03 17:13 liberalartsy 阅读(23) 评论(0) 推荐(0)
摘要: centos 安装Yapi 前提:安装yapi需要 mongodb 和nodejs 安装nodejs 获取资源,安装高版本nodejs curl -sL https://rpm.nodesource.com/setup_8.x | bash - 安装nodejs yum install -y nod 阅读全文
posted @ 2021-06-02 10:53 liberalartsy 阅读(422) 评论(0) 推荐(0)
摘要: 防火墙命令 打开防火墙:systemctl start firewalld 关闭防火墙:systemctl stop firewalld 查看防火墙状态:systemctl status firewalld 端口命令 查看端口占用情况 netstat -lnp|grep 8080 指定开放端口 fi 阅读全文
posted @ 2021-06-02 10:52 liberalartsy 阅读(57) 评论(0) 推荐(0)
摘要: 1.检查SSH秘钥是否存在。右击git bash打开终端执行命令 :cat ~/.ssh/id_rsa.pub 2.如果不存在 则生成SSH 密钥 。在git bash上面执行命令 3.ssh-keygen -t rsa -C "liberalartsy@163.com" //后面是自己的邮箱 一路 阅读全文
posted @ 2021-06-02 10:51 liberalartsy 阅读(1228) 评论(0) 推荐(0)
摘要: 1.使用ES的第一步,添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-elasticsearch</artifactId></dependency> 阅读全文
posted @ 2021-06-02 10:50 liberalartsy 阅读(125) 评论(0) 推荐(0)
摘要: 依赖: <dependency> <groupId>org.apache.shardingsphere</groupId> <artifactId>sharding-jdbc-spring-boot-starter</artifactId> <version>4.0.0-RC2</version>< 阅读全文
posted @ 2021-06-02 10:49 liberalartsy 阅读(248) 评论(0) 推荐(0)