随笔分类 -  SpringBoot_relevant

Springboot相关问题
摘要:1.1 maxActive 连接池支持的最大连接数。一般取值20就可以了,一般把maxActive设置成可能的并发量就行了设 0 为没有限制。 1.2 maxIdle 连接池中最多可空闲maxIdle个连接 ,这里取值为20,表示即使没有数据库连接时依然可以保持20空闲的连接,而不被清除,随时处于待 阅读全文
posted @ 2019-11-06 08:34 Curedfisher 阅读(2632) 评论(0) 推荐(1)
摘要:1.pom.xml <?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instanc 阅读全文
posted @ 2019-11-06 08:14 Curedfisher 阅读(564) 评论(0) 推荐(0)
摘要:http://localhost:8080/updateById/110?name=诸葛亮&age=3 阅读全文
posted @ 2019-11-05 16:42 Curedfisher 阅读(1454) 评论(0) 推荐(0)
摘要:官网网址:https://spring.io/tools3/sts/legacy 阅读全文
posted @ 2019-11-04 23:24 Curedfisher 阅读(3009) 评论(0) 推荐(0)
摘要:实测URL地址: https://blog.csdn.net/zxingchao2009/article/details/82499917 在文章后面清楚写着是缺少两个jar包造成的 阅读全文
posted @ 2019-11-04 16:16 Curedfisher 阅读(297) 评论(0) 推荐(0)
摘要:报错信息: 2019-11-04 11:05:52.404 WARN 4512 [ main] o.a.tomcat.util.scan.StandardJarScanner : Failed to scan [file:/C:/java/19.STS/03.stsMavenRepository/c 阅读全文
posted @ 2019-11-04 11:19 Curedfisher 阅读(5714) 评论(1) 推荐(0)
摘要:1.静态资源 怎样通过浏览器访问静态资源? 注意:不需要加static目录.因为只是告诉springboot目录,而不是静态资源路劲. 这时访问路径就需要加上/static 阅读全文
posted @ 2019-11-01 10:51 Curedfisher 阅读(268) 评论(0) 推荐(0)
摘要:1.@RestController+@EnableAutoConfiguration 项目启动方式三种种: 1.@EnableAutoConfiguration 注意:只能扫描当前类里面 2.@EnableAutoConfiguration +@ComponentScan("包名"),可以单独抽取一 阅读全文
posted @ 2019-11-01 09:55 Curedfisher 阅读(100) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-11-01 09:28 Curedfisher 阅读(567) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-11-01 08:58 Curedfisher 阅读(166) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-11-01 08:46 Curedfisher 阅读(263) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-11-01 08:25 Curedfisher 阅读(114) 评论(0) 推荐(0)
摘要:亲测能用url地址:https://blog.csdn.net/jrx1995/article/details/100008552 阅读全文
posted @ 2019-10-31 08:43 Curedfisher 阅读(697) 评论(0) 推荐(0)
摘要:问题描述:官方文档,默认Spring boot 1.3.5 要求 Java7版本,而当前项目要求 Java6,而且在idea工具中创建项目时,如果采用选项“Spring Initializr”来创建工程的话,发现最低只能创建java7的版本,本地环境又只配置了jdk6,所以idea检测不正确版本,无 阅读全文
posted @ 2019-10-14 11:22 Curedfisher 阅读(2008) 评论(0) 推荐(0)