随笔分类 -  java

java Graphics2D字体圆滑
摘要:原始状态: 增加配置: 效果如下: 阅读全文

posted @ 2019-08-08 09:33 阳光土豆 阅读(1215) 评论(0) 推荐(0)

springboot mysql utf8mb4支持
摘要:spring: datasource: hikari: connection-init-sql: SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci 阅读全文

posted @ 2019-07-31 14:42 阳光土豆 阅读(734) 评论(0) 推荐(0)

Spring Jpa 表字段增加对保留字的支持
摘要:例如:entity为 Dao类为 测试为: 在application.yaml中增加以下配置 执行结果为: 与预想一致 阅读全文

posted @ 2019-07-31 09:32 阳光土豆 阅读(488) 评论(0) 推荐(0)

基于offset+limit的pagable
摘要:import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; public class OffsetBasedPageRequest implements Pageable { private int offset; private int limit;... 阅读全文

posted @ 2019-07-26 16:33 阳光土豆 阅读(374) 评论(0) 推荐(0)

设置SpringBoot默认返回体Content-Type
摘要:@Configuration @EnableWebMvc public class WebConfiguration implements WebMvcConfigurer { @Override public void configureContentNegotiation(ContentNegotiationConfigurer configurer) { c... 阅读全文

posted @ 2019-07-17 10:43 阳光土豆 阅读(10028) 评论(0) 推荐(0)

微信支付中文签名失败
摘要:应使用ISO8859-1作编码,另注意,HTTP请求也需要ISO8859-1 阅读全文

posted @ 2019-07-16 11:58 阳光土豆 阅读(241) 评论(0) 推荐(0)

SpringBoot使用Redis缓存配置(多cachename,不同的ttl)
摘要:1.增加maven依赖 2.增加redis配置(application.yaml) 3.增加CacheManager配置 阅读全文

posted @ 2019-07-05 15:07 阳光土豆 阅读(6892) 评论(0) 推荐(2)

Maven下Lombok和JPAMetaModelEntityProcessor共存
摘要:在maven配置如下: 1.加入项目依赖 2、加入编译参数 3.测试如下: 阅读全文

posted @ 2019-07-05 13:26 阳光土豆 阅读(1182) 评论(0) 推荐(0)

导航