
spring
spring
Sheena..
这个作者很懒,什么都没留下…
展开
-
解决 springboot 中 @Cacheable不起作用
1.application.properties中记得启用缓存 spring.cache.type=redis2.缓存的对象必须实现Serializable3.SpringBootApplication中要加@EnableCaching注解4.@Cacheable是基于Spring AOP代理类,内部方法调用是不走代理的,@Cacheable是不起作用的...转载 2020-09-10 21:26:08 · 7367 阅读 · 0 评论 -
spring中@param和mybatis中@param使用区别
转载自:https://www.cnblogs.com/dongyu666/p/7767396.htmlspring中@param /** * 查询指定用户和企业关联有没有配置角色 * @param businessId memberId * @return */ int selectRoleCount(@Param("busin...转载 2020-05-07 15:46:01 · 163 阅读 · 0 评论 -
HTTP客户端连接
文章目录使用 HttpClient 发送请求主要分为一下几步骤:使用 OkHttp 发送请求主要分为一下几步骤:使用 HttpClient 发送请求主要分为一下几步骤:创建 CloseableHttpClient 对象或 CloseableHttpAsyncClient 对象,前者同步,后者为异步创建 Http 请求对象调用 execute 方法执行请求,如果是异步请求在执行之前需调用 ...原创 2020-03-20 17:31:47 · 258 阅读 · 0 评论 -
Failed to convert value of type 'java.lang.String' to required type 'java.util.Date'; nested except
HTTP Status 500 – Internal Server ErrorType 异常报告消息 Failed to convert value of type 'java.lang.String' to required type 'java.util.Date'; nested exception is java.lang.IllegalStateException: Cannot...原创 2020-02-18 21:44:23 · 2289 阅读 · 0 评论 -
Spring的DI-代码案例
案例地址:链接:https://pan.baidu.com/s/1EPfAlBaO-wIgvCf2ORxReg 提取码:lu9b 其中需要注意的点:原创 2019-12-20 17:54:47 · 166 阅读 · 0 评论 -
IDEA创建XML文件没有Spring Config选项
这个需要导入spring的坐标 但是会出现两种情况.1.假如是父子工程就在父 工程的pom.xml文件添加2.如果只单独的工程.就在当前工程下的pom.xml文件下添加<dependencies> <!--第一步导入spring坐标--> <dependency> <groupId>org...原创 2019-12-19 17:21:51 · 5183 阅读 · 1 评论 -
Spring注解开发
原创 2019-12-13 17:38:01 · 122 阅读 · 0 评论