![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
文章平均质量分 93
郑再鹏
勇气,智慧与勤奋
展开
-
基于SpringBoot工程开发Docker化微服务
基于SpringBoot框架,开发Docker化的微服务的示例。原创 2022-12-27 20:00:13 · 1663 阅读 · 5 评论 -
Element 'beans' cannot have character [children], because the type's content type is element-only
Element 'beans' cannot have character [children], because the type's content type is element-only这个错误一般是由于xml配置文件中有编码问题(可能是由于从网页拷贝数据到文本导致的编码不一致)。尝试将出问题的xml中的文本重新输入一遍,一般会解决这种问题。原创 2016-02-01 17:05:23 · 13239 阅读 · 0 评论 -
Spring @Autowired和构造函数的顺序
最近写代码需要在构造函数中调用一个本class的函数,而这个函数中用到了本class的@Autowired的变量。于是觉得可能会出错。因为@Autowired一定要等本类构造完成后,才能从外部引用设置进来。所以@Autowired的注入时间一定会晚于构造函数的执行时间。那,这个局怎么破?原始代码如下:public class PluginServiceImpl implements原创 2017-09-07 21:00:41 · 12542 阅读 · 6 评论