![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
码界骚男
这个作者很懒,什么都没留下…
展开
-
Spring创建Bean的顺序
一直对Spring创建bean的顺序很好奇,现在总算有时间写个代码测试一下。不想看过程的小伙伴可以直接看结论目录结构:其中:bean4、bean5包下的class没有注解@Component,测试过程中,这两个包的class会直接通过的方式创建。bean1、bean2、bean3包下的class注解了@Component,以便component-scan扫描。另外,bean创建之间没有依赖关...转载 2019-05-27 10:13:21 · 1886 阅读 · 0 评论 -
使用RestTemplate调用接口上传文件
public void restTemplateTransferFile(){ final String filePath = "F:"; final String fileName = "testFile.txt"; final String url = "http://localhost:8080/file/upload"; R...转载 2019-07-09 16:57:45 · 2618 阅读 · 1 评论