随笔分类 -  ---SpringBoot

关于IDEA的Maven打jar包springboot项目问题,打成可执行jar包,IDEA创建的maven项目和spring initializr项目
摘要:Spring Initializr创建的项目 源文件地址 "https://github.com/TaoPanfeng/maven package" 项目的创建步骤 进行打包 clear package 得到jar包 执行jar包 访问 Maven创建的项目 创建步骤 pom.xml打包配置 cle 阅读全文
posted @ 2019-10-16 13:09 陶攀峰 阅读(610) 评论(0) 推荐(0)
SpringBoot整合MongoDB JPA,测试MongoRepository与MongoTemplate用法,简单增删改查+高级聚合
摘要:"https://github.com/TaoPanfeng/case/tree/master/04 mongo/springboot mongo" 一 二 三 四 五 数据不保证全对,主要是对方法的理解 六 这个方便对实体类映射进行简单的 以及 查询支持@Query注解,增删改不支持注解,只有自带 阅读全文
posted @ 2019-10-16 13:02 陶攀峰 阅读(3898) 评论(0) 推荐(0)
解决跨域问题,前端 live-server --port=1802 后端启动 localhost:1801,以及解决 vue 的 axios 请求整合
摘要:测试的源码文件内容 点击跳转 前端引入 vue.js 与 axios.min.js <script src="https://cdn.bootcss.com/vue/2.6.10/vue.js"></script> <script src="https://unpkg.com/axios/dist/ 阅读全文
posted @ 2019-08-23 11:29 陶攀峰 阅读(3065) 评论(0) 推荐(0)
关于IDEA,多服务运行 Services -> Run Dashboard 部分服务添加变灰色,限制使用5个启动类,重启之后需要重新添加,服务在 Run Dashboard 中的显示排序问题,不显示 Services(Run Dashboard)
摘要:我的IDEA版本为最新版本 变灰色的原因就是因为右键删除了那个启动的主配置类,然后就会显示灰色,再次打开这个醒目,就不会在Run Dashboard中显示这个主配置类了 解决方法 如果你要 调整这些服务在Run Dashboard中的位置,可以继续右上角选择编辑配置,进行拖动到你想要的位置 如果没有 阅读全文
posted @ 2019-08-20 13:58 陶攀峰 阅读(9482) 评论(1) 推荐(0)
oracle数据库连接问题org.springframework.jdbc.support.MetaDataAccessException: JDBC DatabaseMetaData method not implemented by JDBC driver - upgrade your driver...
摘要:解决办法: 把数据库驱动改一下,我用的JDK1.8 依赖用的是<artifactId>ojdbc14</artifactId> ,改为 <artifactId>ojdbc8</artifactId> 就可以了 阅读全文
posted @ 2019-08-08 09:48 陶攀峰 阅读(2434) 评论(0) 推荐(0)
实体类与数据库字段不匹配问题,java.sql.SQLSyntaxErrorException: Unknown column 'xxx' in 'field list'
摘要:出错的时候 修改之后,修改之后重启,就可以正常访问了!!! 阅读全文
posted @ 2019-08-06 13:26 陶攀峰 阅读(36435) 评论(0) 推荐(1)
springboot访问出错,mapperScan导包错误java.lang.NoSuchMethodException: tk.mybatis.mapper.provider.base.BaseSelectProvider.<init>() at java.lang.Class.getConstructor0(Class.java:3082) ~[na:1.8.0_172] at java.
摘要:2019-08-06 12:42:03.153 ERROR 10080 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request... 阅读全文
posted @ 2019-08-06 13:00 陶攀峰 阅读(2233) 评论(2) 推荐(1)
springboot启动端口占用问题,报错org.apache.catalina.LifecycleException: Protocol handler start failed
摘要:解决办法,找到被占用的端口 阅读全文
posted @ 2019-07-23 08:13 陶攀峰 阅读(2290) 评论(0) 推荐(0)
SpringBoot集合Linux的FastDFS与Nginx上传图片测试错误com.github.tobato.fastdfs.exception.FdfsConnectException: 无法获取服务端连接资源:can't create connection to/192.168.1.104:22122
摘要:解决办法,依次执行以下两条命令,来关闭防火墙 大坑:如果输入之后,docker失效,需要重启docker 阅读全文
posted @ 2019-07-03 14:59 陶攀峰 阅读(5480) 评论(2) 推荐(0)
SpringBoot测试类启动错误 java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test
摘要:我当时运行SpringBoot测试类的时候踩这个坑,当时的解决办法就是,原本的包名为test现在改为panfeng就行了. 这里的主配置类也就是`PanfengUploadApplication`所在包是 java 下的 `panfeng` 所以测试类的`FastDFSTest`也要在 java 下 阅读全文
posted @ 2019-07-03 14:51 陶攀峰 阅读(8997) 评论(0) 推荐(1)
SpringBoot+SpringCloud 笔记
摘要:SpringBoot总结 使用Typora打开https://pan.baidu.com/s/1tXS45j6ooXpnzhy1Zp78Gw 提取码: c8fi SpringCloud总结 使用XMind打开https://pan.baidu.com/s/1yDeZ9bhZIuBTQIipyIfzq 阅读全文
posted @ 2019-06-24 23:04 陶攀峰 阅读(293) 评论(0) 推荐(0)
Spring Boot自定义Redis缓存配置,保存value格式JSON字符串
摘要:Spring Boot自定义Redis缓存,保存格式JSON字符串 部分内容转自 https://blog.csdn.net/caojidasabi/article/details/83059642 package springboot01cache.config; import com.faste 阅读全文
posted @ 2019-06-12 13:33 陶攀峰 阅读(2673) 评论(0) 推荐(0)
关于IDEA中@Autowired 注解报错~图文
摘要:例如鼠标放上去会报错如下: Could not autowire. No beans of 'StudentMapper' type found. less... (Ctrl+F1) Inspection info:Checks autowiring problems in a bean class 阅读全文
posted @ 2019-06-09 17:22 陶攀峰 阅读(5882) 评论(0) 推荐(1)


顶部 底部