摘要:
我是git commit时不能输入中文,亲测有效 1、点击菜单help->Edit Custom VM Options 2、最后一行追加 -Drecreate.x11.input.method=true 阅读全文
摘要:
@Configuration和@EnableConfigurationProperties和@AutoConfigureBefore和@AutoConfigureAfter 阅读全文
摘要:
【Java Web】条件Bean@ConditionalOnResource 注解仅仅会加载classpath中指定的资源,资源存在则创建对象,资源不存在则不创建对象。外部资源文件无法加载,想要使用外部资源文件参考: resources目录下资源application.properties,存在则创 阅读全文
摘要:
cd E:/env/nginx-1.16.0 测试配置文件 nginx -t -c E:/env/nginx-1.16.0/conf/nginx.conf 启动 nginx -c E:/env/nginx-1.16.0/conf/nginx.conf tasklist /fi "imagename 阅读全文
摘要:
https://chenyongjun.vip/articles/77 java -Djavax.net.debug=all -Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2" -Dhttps.protocols="TLSv1,TLSv1.1,TLS 阅读全文
摘要:
@ConditionalOnProperty 根据属性值创建对象 属性存在且值匹配时创建,不存在时不创建。my-config.enable-property = true时才会创建对象 my-config.enable-property = true import org.springframewo 阅读全文
摘要:
java @Value("${encryptEnable:false}") boolean encryptEnable; 配置中心 encryptEnable java @RefreshScope //修复自动刷新 @ConfigurationProperties(prefix = "encrypt 阅读全文
摘要:
【Java SE】http请求HttpClient 文档:https://hc.apache.org/httpcomponents-client-4.5.x/current/tutorial/html/fundamentals.html 依赖 <dependency> <groupId>org.ap 阅读全文
摘要:
【Java SE】http请求RestTemplate RestTemplate对象 @Configuration public class RestTemplateConfiguration { @Bean public RestTemplate restTemplate() { HttpComp 阅读全文