おどらの家 发布的文章

SpringBoot Sample Config

jdbc

spring.main.web-application-type=none
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/realtime?characterEncoding=UTF-8&serverTimezone=UTC&autoReconnect=true&failOverReadOnly=false
spring.datasource.username=root
spring.datasource.password=
spring.datasource.tomcat.initial-size=1
spring.datasource.tomcat.max-active=5
spring.datasource.tomcat.max-idle=5
spring.datasource.tomcat.min-idle=1

Caddy Config

Caddy Config for ReactJS

inew.local {
    root d:/work/project/study/wuhan-screen-develop/build
    rewrite {
        to {path} {path}/ /index.html
    }
}

inew.local/boss30/api {
    proxy / http://inew.unovo.com {
        header_upstream Host {proxy_host}
    }
}

Use JS Create Animation

Use JS Create Animation

https://github.com/HenrikJoreteg/create-keyframe-animation
https://www.jianshu.com/p/b7b347c9783e
https://www.npmjs.com/package/react-keyframes
https://github.com/web-animations/web-animations-js.git

chrome插件备忘

必备

  • Proxy SwitchyOmega
  • Markdown Preview
  • User-Agent Switcher for Chrome
  • Charset
  • Redirector

开发

  • LiveReload
  • Moesif Origin & CORS Changer
  • React Developer Tools
  • Redux DevTools
  • User JavaScript and CSS
  • Vue.js devtools

跨域插件配置

如果想要携带cookie需要配置 Access-Control-Allow-Origin

  • Access-Control-Allow-Origin: http://localhost:8080
  • Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
  • Access-Control-Allow-Methods: GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH
  • Access-Control-Allow-Credentials: true

BASH小工具(2)

jq

用于命令行处理json数据

  • https://github.com/stedolan/jq
  • https://www.ibm.com/developerworks/cn/linux/1612_chengg_jq/index.html

xmlstarlet

用于命令行处理xml文档

  • https://www.ibm.com/developerworks/cn/xml/x-starlet.html
  • http://xmlstar.sourceforge.net/
www.000webhost.com