异常
Kevin Pearce
工作占据生活全部,无力翱翔
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
前端数据String传入后端转换为Date数据
方法一:代码格式转换String createtime = goods.getCreatetime().toString();SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");Date parse = formatter.parse(createtime);goods.setCreatetime(parse);方法二:控制层加入@InitBinder public void init(W原创 2020-10-22 16:41:42 · 1756 阅读 · 0 评论 -
Repeated column in mapping for entity
报错字段需要添加insertable=false, updatable=false如:@Column(name="mail_push",insertable=false,updatable=false)private String push;原创 2020-10-20 17:35:56 · 337 阅读 · 0 评论 -
无法连接到Redis:java.net.ConnectException: Connection refused: no further information
问题描述:Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is i原创 2020-09-30 08:31:36 · 1840 阅读 · 0 评论 -
com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known serve
报错信息:com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server解决方法一:修改yml配置文件eureka: client: registerWithEureka: false fetchRegistry: false解决方法二:查看Eureka的端口,对应端口号进行配置defaultZone如:Eureka的配置s原创 2020-09-25 17:29:06 · 291 阅读 · 0 评论 -
com.netflix.client.ClientException: Load balancer does not have available server for client: xxxxx
问题:ERROR:Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is com.netflix.hystrix.exception.HystrixRuntimeException: SkuFeign#search(Map) failed and no fallback available原创 2020-09-23 23:26:26 · 479 阅读 · 0 评论 -
Action: Consider defining a bean of type ‘entity.IdWorker‘ in your configuration.
**Description:Field idWorker in com.changgou.goods.service.impl.SpuServiceImpl required a bean of type ‘entity.IdWorker’ that could not be found.The injection point has the following annotations:@org.springframework.beans.factory.annotation.Autowired(re原创 2020-09-17 23:34:29 · 957 阅读 · 0 评论 -
Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
转载自:https://www.cnblogs.com/javawxid/p/10949511.html———————————————————————————问题原因: Mybatis没有找到合适的加载类,其实是大部分spring - datasource - url没有加载成功,分析原因如下所示:DataSourceAutoConfiguration会自动加载没有配置spring - datasource - url 属性spring - datasource - url 配置的地址格式有问题原创 2020-09-21 16:50:38 · 253 阅读 · 0 评论
分享