上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 96 下一页
摘要: spring boot2.x下 使用feign,注解@EnableFeignClients 找不到的解决方法 在spring boot1.x下,使用注解@EnableFeignClients,jar包依赖是: 但是 在spring boot2.x下, Spring Cloud对Feign的支持由or 阅读全文
posted @ 2018-10-27 13:40 Angel挤一挤 阅读(12861) 评论(4) 推荐(3)
摘要: 之前在spring boot服务中使用@ControllerAdvice做自定义异常拦截,完全没有问题!!! GitHub源码地址: 但是现在在spring cloud中使用@ControllerAdvice做自定义异常拦截,却一直没有效果! package com.swapping.springc 阅读全文
posted @ 2018-10-26 16:54 Angel挤一挤 阅读(1492) 评论(2) 推荐(0)
摘要: 先说解决方案: 注意 只需要把#{} 改成 ${} 即可 再看 使用过程: Mapper.java 首先,是这样的mybatis拼接的sql语句 执行的sql语句是这样: 这样执行sql 是没有效果的 !!! 正确的 执行的sql语句是这样的: 阅读全文
posted @ 2018-10-25 09:56 Angel挤一挤 阅读(24236) 评论(1) 推荐(2)
摘要: 在spring cloud中,一个新的微服务想要被注册中心发现,需要注意几个地方: 1.pom.xml文件依赖中需要有这个依赖 spring boot 2.x 需要这个依赖 spring boot 1.x需要这个依赖 2.需要在启动类上添加这两个基本的注解【事务的注解是另外的】 3.配置文件中需要配 阅读全文
posted @ 2018-10-24 15:50 Angel挤一挤 阅读(5000) 评论(0) 推荐(0)
摘要: spring boot 2.0.3启动报错: 解决之路: 首先,在启动类上添加注解@EnableAutoConfiguration 或 @SpringBootApplication 这种 解决方案 ,都是无效的 其次,maven编译install这个spring boot服务,打包成功【如果这一步失 阅读全文
posted @ 2018-10-24 15:10 Angel挤一挤 阅读(14932) 评论(0) 推荐(0)
摘要: maven命令 package、install、deploy 的区别 阅读全文
posted @ 2018-10-24 14:58 Angel挤一挤 阅读(337) 评论(0) 推荐(0)
摘要: 报错内容如下: 解决方案: 打开终端,【前提是你的环境装了maven】 命令执行: 即可全部打包完成!!! 如果有别的问题 可以依次解决完成后,再执行这个命令进行打包!! 阅读全文
posted @ 2018-10-24 09:28 Angel挤一挤 阅读(7599) 评论(0) 推荐(1)
摘要: 使用maven打包报错如下: 解决方法: 打开自己的maven的setting配置文件 搜索mirrors关键字,加入mirror镜像节点 <mirror> <id>osc</id> <mirrorOf>*</mirrorOf> <url>http://maven.oschina.net/conte 阅读全文
posted @ 2018-10-24 09:12 Angel挤一挤 阅读(32177) 评论(0) 推荐(0)
摘要: 正常的输入出来是这个样子的: 现在变成了这个样子: 怎么解决这个问题呢: 快捷键 shift+空格 即可解决 阅读全文
posted @ 2018-10-17 15:18 Angel挤一挤 阅读(876) 评论(0) 推荐(0)
摘要: 导入的一个外部的spring boot项目,运行启动类,出现错误:找不到或无法加载主类 com.codingapi.tm.TxManagerApplication 解决方案: 将所有错误处理完成后,再重新启动即可!!! 阅读全文
posted @ 2018-10-16 15:48 Angel挤一挤 阅读(28459) 评论(3) 推荐(3)
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 96 下一页