- 博客(10)
- 收藏
- 关注
原创 Caused by: com.jcraft.jsch.JSchException: timeout: socket is not established
在springcloud中集成spring config 的时候,连接github地址出现Caused by: com.jcraft.jsch.JSchException: timeout: socket is not established解决方案:添加上username 和password
2020-05-07 17:06:00 4059 2
原创 热部署 devtools
目的:开始热部署 devtools,避免开发过程中多次重启步骤:1、修改pom.xml 文件,在dependencies加入依赖<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-devtools --> <dependency> ...
2020-04-28 20:05:13 151
原创 Caused by: java.lang.ClassNotFoundException: Cannot find class: BIGINT
在springboot + mybatis 背景下,数据库字段 id 为bigint ,java中id为Long。问题:解决: 映射要使用 jdbcType
2020-04-28 19:19:42 1860 3
原创 SpringBoot笔记
IoC容器简介Spring IoC 容器是一个管理Bean的容器, 在Spring的定义种, 他要求所有的IoC容器都必须实现接口BeanFactory , 他是一个顶级容器管理接口。以下是源码://// Source code recreated from a .class file by IntelliJ IDEA// (powered by Fernflower decompiler...
2019-12-17 18:13:25 258
原创 start() 和 run()
以下代码调用 t.run();运行如下:public class MyUtil extends ArrayList { public static void main(String [] args) { Thread t = new Thread(){ public void run(){ pong(); } }; t.run(...
2019-05-24 16:38:49 110
原创 removeRange()坑
1、关于removeRange() 的用法public class MyUtil extends ArrayList { public static void main(String [] args){ MyUtil m = new MyUtil(); m.add("w"); m.add("x"); m.add("y"); m.add("z"); ...
2019-05-24 16:01:42 3281
原创 使用@ConfigurationProperties 提示configuration annotaton processor not found in classpath
使用@ConfigurationProperties 提示configuration annotaton processor not found in classpath解决办法:在pom中引入下面 <dependency> <groupId>org.springframework.boot</groupId> ...
2019-04-08 18:05:02 536
原创 springBoot发送邮件
springBoot发送邮件步骤坑点步骤第一步在pom.xml中导入&amp;lt;dependency&amp;gt; &amp;lt;groupId&amp;gt;org.springframework.boot&amp;lt;/groupId&amp;gt; &amp;lt;artifactId&amp;gt;spring-boot-starter-mail&am
2019-02-27 18:01:19 110
原创 SpringBoot整合Cache
1、引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-cache</artifactId> </dependency>2、@Enabl...
2019-02-20 11:35:41 119
原创 SpringBoot设置debug=true
启动springboot项目,设置debug=true,在控制台查看springboot自动配置的服务 ============================CONDITIONS EVALUATION REPORT============================Positive matches:----------------- CodecsAutoConfigu...
2019-02-15 10:43:10 13679
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人