- 博客(62)
- 收藏
- 关注
转载 [zookeeper]查看zookeeper版本
echo stat|nc localhost 2181Zookeeper version: 3.4.12-e5259e437540f349646870ea94dc2658c4e44b3b, built on 03/27/2018 03:55 GMT ...
2019-09-06 09:12:00
15912
转载 [docker]查找镜像
docker build -t motor/path:1.1 .docker search jdkNAME DESCRIPTION STARS ...
2019-09-03 12:36:00
220
转载 [docker].dockerignore
[webapp@app02 ~/motor]$docker build -t 130.51.23.250:8088/motor/path:1.1 -f /app/webapp/motor/Dockerfile_path /app/webapp/motorERRO[0238] Can't ad...
2019-08-30 09:02:00
459
转载 [docker]保存为文件
该镜像保存为一个tar文件,即docker save -o xxx.tar xxx:taghttps://www.jianshu.com/p/943a652e48d4docker save -o path-service.tar 130.51.23.250:8088/m...
2019-08-29 14:07:00
392
转载 [echarts]改hang州热门步行路线 - 百度地图
app.title = '杭州热门步行路线 - 百度地图';$.get('data/asset/data/hangzhou-tracks.json', function(data) { var lines = data.map(function (track) { ...
2019-08-26 18:41:00
641
转载 [echarts]html demo
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>echarts</title> <script src="...
2019-08-26 18:40:00
253
转载 oracle&mysql
/** * 初始化数据 */-- 初始化 update td_basic_mile_file 别名update td_basic_mile_file a set en_alias_name=(select station_name from td_basic_station_bra...
2019-08-26 18:39:00
178
转载 [mysql][oracle]oracle改mysql
varchar2改varcharand rownum=1改limit 1to_number改cast(stakenum as unsigned int),unsigned不能少||改concatseq.nextval没替代,改自动递增-主键、sql改nullmysql的unicon...
2019-08-23 09:00:00
183
转载 [mysql]存储过程
CREATE DEFINER=`motor`@`%` PROCEDURE `NewProc`()BEGIN -- 自定义变量-- declare stopflag int default 0; DECLARE done BOOLEAN DEFAULT 0 ;-- DECLA...
2019-08-20 09:04:00
149
转载 [mysql][navicat]几个注意
mysql不支持双引号1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use...
2019-08-18 09:21:00
85
转载 [eureka][spring cloud]eureka加安全认证报错Root name 'timestamp' does not match expected ('instance')...
不看warn,看error2019-08-14 10:23:14.182 [DiscoveryClient-HeartbeatExecutor-0] ERROR c.n.d.s.transport.decorator.RedirectingEurekaHttpClient - Request...
2019-08-17 09:44:00
10049
转载 [eureka][spring cloud]Camden升Greenwich安全认证
idea会提示已废弃。org/springframework/boot/spring-boot-autoconfigure/2.1.2.RELEASE/spring-boot-autoconfigure-2.1.2.RELEASE.jar!/META-INF/spring-configura...
2019-08-14 09:23:00
216
转载 [springboot]devtools在生产导致不断重启
定时任务程序上生产后,不受定时控制,不断执行(发邮件),开发环境没问题知道原因了服务器上,每次都重启了!2019-08-12 11:16:52.709 [Thread-6] INFO o.s.scheduling.concurrent.ThreadPoolTaskScheduler...
2019-08-13 09:09:00
895
转载 [springboot]多数据源/动态数据源
/** * 作用:保存一个线程安全的DatabaseType容器 */public class DatabaseContextHolder { private static final ThreadLocal<String> contextHolder = new T...
2019-08-12 09:13:00
221
转载 [java]spring-boot-starter-mail发送邮件
import lombok.extern.slf4j.Slf4j;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.mail.javamail.JavaMailS...
2019-08-09 09:00:00
797
转载 [MonogoDB]命令
mongo --help[mongodb@bssdb01 ~]$mongo --versionMongoDB shell version v3.6.4git version: d0181a711f7e7f39e60b5aeb1dc7097bf6ae5856OpenSSL versio...
2019-08-08 08:58:00
232
转载 [json][jackson][swagger]@JsonNaming等
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)- https://www.cnblogs.com/majianming/p/8491020.html@JsonProperty("OPER_TYPE") 一个个加sp...
2019-08-07 09:03:00
1912
转载 [spring batch]自动创建表
#spring.batch.initializer.enabled=truespring.batch.initialize-schema=ALWAYS看.m2/repository/org/springframework/boot/spring-boot-autoconfigure/2...
2019-08-06 09:23:00
5168
转载 [swagger2]匹配多个controller,不能多个路径的
.apis(RequestHandlerSelectors.withClassAnnotation(RestController.class))https://www.cnblogs.com/acm-bingzi/p/swagger2-controller.html多个路径方法: ...
2019-08-05 09:02:00
2380
转载 [spring batch]建表语句(hsqldb改mysql)
/** * @see <a>https://spring.io/guides/gs/batch-processing/<a/> */@Configuration@EnableBatchProcessingpublic class BatchConfigurat...
2019-08-02 09:49:00
372
转载 [docker]Dockerfile2
#Base imageFROM 130.51.23.250:8088/bss/jdk:1.8.0MAINTAINER gonghy gonghy@asiainfo.comRUN mkdir -p /opt/logsCOPY path-service /opt/path-servic...
2019-08-02 09:48:00
113
转载 [spring batch]相关文章
SpringBoot整合SpringBatch实用简例把batch看作一个job,再结合quartzSpringBoot整合Quartz作为调度中心完整实用例子Spring Batch批处理(具体作用)spark streaming与spring batch批处理Spring Bat...
2019-08-01 17:13:00
90
转载 [docker]注册到eureka里ip变为172.17.0.2问题
--net=hosthttps://blog.youkuaiyun.com/weixin_38319645/article/details/81349541docker run -d -p 8831:8830 --net=host --name=path-service -i 130.51.23.2...
2019-08-01 09:25:00
1321
转载 [docker]命令&Dockerfile
#!/usr/bin/env bash# 构建镜像docker build -t 130.51.23.250:8088/motor/path:1.0 -f /app/webapp/motor/Dockerfile_path /app/webapp/motor# 查看镜像docker ...
2019-07-31 09:04:00
132
转载 [java]equals and hashcode
package com.example.demo.object;import lombok.Data;import java.util.HashMap;import java.util.Map;@Datapublic class NeighbourNode { pri...
2019-07-30 08:50:00
94
转载 [swagger2]Unable to infer base url. This is common when using dynamic servlet
关于通过Swagger查看接口浏览器跳出Unable to infer base url. This is common when using dynamic servlet registrat...https://www.jianshu.com/p/0c92ec5bb257 Enable...
2019-07-29 09:06:00
108
转载 [swagger2]allowableValues
@ApiModelProperty(allowableValues = "1234500100001210, 1234500100001000")DataType要点击 Model !https://www.jianshu.com/p/6c9bbf5a105f allowableVal...
2019-07-26 09:02:00
3939
转载 [logback]去掉kafka日志与additivity
<logger name="org.springframework.kafka" level="OFF"/>https://bbs.youkuaiyun.com/topics/392157123logback.xml <!-- 该文件不要直接放在resources下,否则会覆盖d...
2019-07-25 09:07:00
366
转载 [spring][aop]@Pointcut和@Value
@Pointcut("execution(* com.asiainfo.path.controller.*.*(..))")@Pointcut("execution(public * com.asiainfo.path.controller.*.*(..))")解决:多个目录的contro...
2019-07-24 09:06:00
661
转载 [eureka]MismatchedInputException: Root name 'timestamp' does not match expected
WARN c.n.d.s.transport.decorator.RetryableEurekaHttpClient - Request execution failed with message...
2019-07-23 09:30:00
6627
转载 [java]str.replaceAll(" ", "")替换空格不行
str.replaceAll(" ", ""); //去掉所有空格,包括首尾、中间不行?全角半角空格https://blog.youkuaiyun.com/qq_33210042/article/details/78087713https://www.cnblogs.com/shuilangy...
2019-07-22 09:06:00
965
转载 [mysql]SQL查询存在A表但不存在B表的数据
select * from ti_road_node_code a where a.road_node_id not in (select en_road_node_id from ti_road_node_relation b)15毫秒select * from ti_road_n...
2019-07-19 10:57:00
1102
转载 [Dijkstra]java-顶点为String
import java.util.*;/** * Dijkstras算法实现。 * * Character改为String。 * bug: 终点没有定义时,空指针异常。解决方法:终点定义一个空的Vertex即可。 * 不足:初始化Graph时,必须按节点来分组。(但初始化已分组好...
2019-07-18 09:25:00
134
转载 [算法]图的最短路径算法
Dijkstra算法(单源最短路径,时间复杂度O(n^2),堆优化后O((m+n)logn),贪心算法)Floyd算法(Floyd-Warshall,插点法)(多源最短路径,时间复杂度O(n^3),空间复杂度O(n^2),动态规划算法)Bellman-Ford算法(单源最短路径,负权边,...
2019-07-17 08:52:00
59
转载 [python]pyplot中文乱码
plt.rcParams['font.sans-serif'] = ['SIMHEI']成功了!前面要加uplt.title(u"motorway 地图", fontsize=20)附:# 已有字体import matplotlib.font_managera = sorted...
2019-07-16 08:58:00
123
转载 [python]It is a distutils installed project
sudo pip install pandasInstalling collected packages: numpy, six, python-dateutil, pandas Found existing installation: numpy 1.8.0rc1Cannot un...
2019-07-15 09:11:00
269
转载 MyBatis中大于号以及小于号的表达方式
转义法大于:>小于:<大于等于:>=小于等于:<=<![CDATA[ sql语句 ]]>https://blog.youkuaiyun.com/a657281084/article/details/78642440 ...
2019-07-12 09:17:00
138
转载 [mybatis]It's likely that neither a Result Type nor a Result Map was specified
Caused by: org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.asiainfo.path...
2019-07-11 09:32:00
245
转载 [mysql]整型不定义位数
mediumInt默认为什么是9位?不是8位知道了。如果不填,都用最大的。int是11,smallint是6,mediumint是9alter table ti_road_node_code MODIFY column seq_no smallINT UNSIGNED not null;...
2019-07-10 09:34:00
577
转载 [mysql]enum
show create table ti_road_node_relation;CREATE TABLE `ti_road_node_relation` ( `en_road_node_id` char(16) CHARACTER SET utf8 COLLATE utf8_bin N...
2019-07-09 09:02:00
201
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人