springboot
nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial
SpringBoot与Web 先在idea中选择场景 springboot已经默认将这些常见配置好了,我们只需要在配置文件中指定少量配置就可以运行起来 然后我们可以开始编写业务代码了
源码下載1git clone https://github.com/spring-projects/spring-boot.git
checkout failed原因
1git config core.longPaths true
SpringBoot7-自定义starter
nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial
如何编写理清依赖自动配置@Configuration 指定这个是配置类@ConditionalOnxxx 在某些条件下才生效@AutoConfigureAfter 指定自动配置类的顺序@Bean 给IOC加组件@ConfiguretionProperties 结合相关的xxxProperties配置类来绑定配置@EnableConfigurationProperties 让xxxProperties生效加入到容器中讲自动配置类配置在META-INF/spring.factories中
自动配置设置启动器只做依赖导入,自动配置专门用一个模块来写,让启动器依赖自动配置,别人就只需要引入启动器即可
开始操作先创建空工程,在里面创建两个modules,一个是空的maven,另一个是空的springboot
maven工程导入一个依赖就可以了
12345678910111213141516 ...
hexo部署到私人服务器
nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial
仓库同步1234567yum install git -ymkdir /data/GitLibrarymkdir -p /data/www/hexogit init --bare hexo.gitvim /data/GitLibrary/hexo.git/hooks/post-receive# git --work-tree=/data/www/hexo --git-dir=/data/GitLibrary/hexo.git checkout -fchmod +x /data/GitLibrary/hexo.git/hooks/post-receive
部署123docker run -d --restart=always \-p 80:80 -v /data/www/hexo:/usr/share/nginx/html \--name=hexo-blog nginx
mysql常用指令
nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial
Mysql查看表的定义1show create table table_name;
时间函数1date_add(date(imp_date), interval 1 week)
hexo中valine出现403
nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial
配置安全域名即可
typora
nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial
Typora自定义配置参考
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 ...
springcloud-cluster
nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial
Spring Cloud Cluster 1.0.1.RELEASE参考
Spring Cloud Cluster提供了分布式系统中集群的特性,例如选主,集群持久化信息储存,全局锁和一次性token
以下是Spring Cloud Cluster 1.0.1的Spring Boot 自动装配流程,其中的zk模式主要用到了第三方框架CuratorFramework
Java杂谈
nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial
JAVAIDEASpring Boot 启动命令行太长修改文件.idea/workspace.xml
12<component name="PropertiesComponent"> <property name="dynamic.classpath" value="true" />
反编译12345# https://varaneckas.com/jad/wget https://varaneckas.com/jad/jad158e.linux.static.zip; \unzip jad158e.linux.static.zipjad xxx.classcat xxx.jad
Java启动参数JVM参数123456789-ea-Dhttp.proxyPort=12639-Dhttp.pro ...
容器化开发
nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial
容器化开发https://segmentfault.com/a/1190000023095631
注意事项对于所有的容器化开发,我们的时区都需要设置
1-v /etc/localtime:/etc/localtime
Nodejs开发12345678910111213docker run -it -v $HOME:$HOME node bashdocker run -itd \--restart=always \--name node-dev \-v $HOME/src:/root/src \-v /etc/localtime:/etc/localtime \-v $HOME/.ssh:/root/.ssh \-p 3000:3000 \node:14.4.0# 这个时区设置添加到启动程序中# process.env.TZ = 'Asia/Shanghai';
J ...
springcloud-gateway
nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial
Spring Cloud Gateway12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697package com.example.demo;import java.util.ArrayList;import java.util.List;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;imp ...