Skip to content

Instantly share code, notes, and snippets.

@dolt131943
dolt131943 / git-flow-always fatal
Created November 27, 2018 11:44
git flow always show error : git flow fatal: Not a gitflow-enabled repo yet. Please run "git flow init" first.
1. use git flow init in a exists repo (already has many branches).
2. this command done with a message: "Production and integration branches should differ."
3. try use "git flow init -d" , "git flow init -f ", or poen .git/config to delete all prefix with "git flow",and retry "git flow init", .problem not resolve.
finally,I manual create develop branch(master already exists), and then "git flow init -f -d", then problem resolved.
@dolt131943
dolt131943 / fastjson-confusing-JSONField.md
Created December 9, 2018 12:52
FastJson设置了默认日期格式后就无法使用JSONField进行设置日期格式了!!!
com.alibaba.fastjson.support.config.FastJsonConfig config = new com.alibaba.fastjson.support.config.FastJsonConfig();
		config.setSerializerFeatures(SerializerFeature.PrettyFormat, SerializerFeature.WriteMapNullValue);
		config.setDateFormat("yyyy-MM-dd HH:mm:ss");
 @JSONField(format="yyyy-MM-dd@HH:mm:ss.SSSZ")
    public Date getCreateTime() {
 return createTime;
@dolt131943
dolt131943 / gist:75941cff0f10ff1a2fcc9524cf46fca5
Created April 9, 2019 02:07
spring boot2 deplay to tomcat not recognize and boot normal, but standalone ok.
Spring Boot 2.1.2.RELEASE
Spring boot App must extends SpringBootServletInitializer
so web container can recognize the web config.
@dolt131943
dolt131943 / cron-run-docker-error.md
Created May 11, 2019 15:56
crontab can not run normally when invoke shell that contains docker command with -it option
@dolt131943
dolt131943 / nexus3-docker-boot-error.md
Last active April 20, 2021 07:27
nexus3 docker 无法完成启动(8h以上),单核cpu一直100%,无法访问
"FelixStartLevel" #23 daemon prio=5 os_prio=0 tid=0x00007fee78418800 nid=0xde runnable [0x00007fee53782000]
   java.lang.Thread.State: RUNNABLE
	at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OWALPageChangesPortion.getIntValue(OWALPageChangesPortion.java:85)
	at com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurablePage.getIntValue(ODurablePage.java:117)
	at com.orientechnologies.orient.core.storage.impl.local.paginated.OClusterPage.doDefragmentation(OClusterPage.java:501)
	at com.orientechnologies.orient.core.storage.impl.local.paginated.OClusterPage.appendRecord(OClusterPage.java:99)
	at com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster.updateRecord(OPaginatedCluster.java:1121)
	at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.doUpdateRecord(OAbstractPaginatedStorage.java:4039)
	at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.commitEntry(OAbstractPaginatedStorage