2020年3月2日

利用android模拟器实现晓黑板作业批改

摘要: 一、下载安卓模拟器,我采用的是网易的mumu, 如下链接:http://mumu.163.com,安装并启动 二、下载晓黑板APK安装包 阅读全文

posted @ 2020-03-02 13:16 阳光土豆 阅读(831) 评论(0) 推荐(0)

2019年8月8日

java Graphics2D字体圆滑

摘要: 原始状态: 增加配置: 效果如下: 阅读全文

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

2019年7月31日

springboot mysql utf8mb4支持

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

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

docker php5

摘要: FROM ubuntu RUN rm -f /etc/localtime RUN ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime RUN apt-get full-upgrade -y RUN apt-get update -y RUN apt-get install -y iproute2 RUN apt-get install -... 阅读全文

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

Spring Jpa 表字段增加对保留字的支持

摘要: 例如:entity为 Dao类为 测试为: 在application.yaml中增加以下配置 执行结果为: 与预想一致 阅读全文

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

2019年7月26日

基于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 阳光土豆 阅读(373) 评论(0) 推荐(0)

2019年7月17日

设置SpringBoot默认返回体Content-Type

摘要: @Configuration @EnableWebMvc public class WebConfiguration implements WebMvcConfigurer { @Override public void configureContentNegotiation(ContentNegotiationConfigurer configurer) { c... 阅读全文

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

2019年7月16日

微信支付中文签名失败

摘要: 应使用ISO8859-1作编码,另注意,HTTP请求也需要ISO8859-1 阅读全文

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

2019年7月5日

SpringBoot使用Redis缓存配置(多cachename,不同的ttl)

摘要: 1.增加maven依赖 2.增加redis配置(application.yaml) 3.增加CacheManager配置 阅读全文

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

Maven下Lombok和JPAMetaModelEntityProcessor共存

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

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

导航