Easter79 Easter79
3年前
springmvc mybatis 调用sql , 转成json
1.代码@AutowiredprivateSqlSessionFactoryBeansqlSessionFactory;@RequestMapping(value"f3")publicStringf3(@RequestBodyMap<String,Stringm
Easter79 Easter79
3年前
springboot使用Fiber纤程踩过的坑
@RequestAttribute为null在springboot中使用@FiberSpringBootApplication注解标注在SpringBootApplication上时,发现在拦截器(或过滤器)中调用request.setAttribute设置的值,在controller中使用@RequestAttribute获取却是null,而去
Easter79 Easter79
3年前
springboot基于角色的权限认证
一、使用场景springboot、springSecurity、mybatis 基于角色的权限控制二、参考文献https://liuyanzhao.com/7431.html(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fliuyanzhao.com%2F7431.htm
Easter79 Easter79
3年前
SpringBoot+Druid+Mybatis连接Oracle
最近有一个新项目需要开发搭建了个SpringBoot框架记录一下!Oracle连接jar编译到maven仓库参考:Maven编译jar包到本地仓库(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fblog.csdn.net%2Fwzsy_ll%2Farticle%2Fdetails
Stella981 Stella981
3年前
Hibernate Validator 手动发起验证
在SpringBoot开发web项目的时候,表单参数验证,常用 HibernateValidator需要在参数类的属性上添加注解@NotNull(https://my.oschina.net/notnull),@Max(https://my.oschina.net/maxttyl),@Min(https://my.osc
Stella981 Stella981
3年前
SpringBoot+Druid+Mybatis连接Oracle
最近有一个新项目需要开发搭建了个SpringBoot框架记录一下!Oracle连接jar编译到maven仓库参考:Maven编译jar包到本地仓库(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fblog.csdn.net%2Fwzsy_ll%2Farticle%2Fdetails
Easter79 Easter79
3年前
Swagger如何测试Date类型参数
问题Swagger测试时,参数直接输入日期格式化后的类型,会报参数日期转换错误:ConversionFailedException解决网上说在参数上添加注解@DateTimeFormat(pattern“yyyyMMdd”)或者是添加@JsonFormat(pattern”yyyyMMddHH:mm:
Stella981 Stella981
3年前
Guava学习笔记:EventBus
EventBus基本用法:使用Guava之后,如果要订阅消息,就不用再继承指定的接口,只需要在指定的方法上加上@Subscribe注解即可。代码如下:消息封装类:public class TestEvent {            private final int message;          
Wesley13 Wesley13
3年前
oracle结合mybatis批量插入数据
先上代码:controller:resultservice.insertTRbXdhjLendYdData(params);service:List<TRbXdhjLendDTOdtoList(List<TRbXdhjLendDTO)paramMap.get("jsonList");
Stella981 Stella981
3年前
Mybatis初学时遇到的错误
错误一:com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException:3字节的UTF8序列的字节2无效。解决:我的项目是Maven构建的,所以在项目依赖配置文件pom.xml上加入构建项目编码属性:<proper