自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

转载 MyEclipse 引用其他项目及其jar包

倘若在工作区有两个项目A和B,B项目引用A项目及其jar包(防止调用时A项目的方法出现NoClassFound),步骤如下:在A项目上点右键看属性,点击Build Path—>Conconfigure Build Path–>Order and Export,在jar包前面打钩;在B项目上点右键看属性,点击Build Path—>Conconfigure BuildPath–>Projects–Add,选择A项目,点击OK即可。搬运自:https://www.cnblogs.

2021-09-08 09:30:41 266

原创 前端数据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 1641

原创 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 266

原创 MySQL数据库中重置自增字段(AUTO_INCREMENT)的值

使用MySQL的ALTER语句,如下:ALTER TABLE tablename AUTO_INCREMENT = 1tablename为数据库表名数字表示重置到的数字,下一次添加数据的ID

2020-10-16 16:20:50 584

原创 无法连接到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 1712

原创 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 222

原创 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 363

原创 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 169

原创 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 824

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除