![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
紫柳
这个作者很懒,什么都没留下…
展开
-
@Configuration初始化一个类
package org.jeecg.config; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Configuration; import org.springframework.mail.javamail.JavaMailSender; import org.springf原创 2022-01-27 09:42:31 · 645 阅读 · 0 评论 -
freemarker的xml实现编号和列单独循环
import freemarker.template.Configuration; import freemarker.template.Template; import freemarker.template.Version; import lombok.extern.slf4j.Slf4j; import org.junit.Test; import java.io.*; import java.nio.charset.StandardCharsets; import java.util.ArrayL原创 2021-12-16 11:48:04 · 522 阅读 · 0 评论 -
application/json和application/x-www-form-urlencoded参数接收
application/json 使用方法或其他方式请求方法中是content-type:application/json代表参数以json字符串传递给后台,controller接收需要@RequestBody 接收参数 例如:@RequestBody Map<String, Object> map,也可以使用类接收@RequestBody 对象 对象名 application/x-www-form-urlencoded 使用方法或其他跨平台方式请求方法content-type:applicat转载 2021-07-16 10:01:40 · 1142 阅读 · 0 评论 -
控制反转(IOC)的代码理解
https://blog.csdn.net/sinat_21843047/article/details/80297951 首先在控制反转的思想里面,有个东西叫IOC容器,所有的类都会放到里面; 现在有两个类:用户类和用户信息类; 用户类是个实体,用户信息类是另外一个实体; 传统的方式使用依赖对象(正转): public class User { private String address; private String phone; public class UserI原创 2021-04-22 11:47:56 · 236 阅读 · 0 评论