![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java常用工具类
文章平均质量分 61
TheOceanofStar
这个作者很懒,什么都没留下…
展开
-
读取maven中resource下的配置文件工具类
import java.io.InputStream;import java.util.Properties;public class PropertiesUtil { public static Properties getConfig() { Properties property = new Properties(); try { ClassLoader classLo原创 2018-01-25 12:14:02 · 357 阅读 · 0 评论 -
spring 如何在普通类中调用注入的对象
WebApplicationContext context = ContextLoader.getCurrentWebApplicationContext(); service= (UserService) context.getBean("userService"); 注意:userService首字母小写原创 2018-02-01 16:16:54 · 2849 阅读 · 0 评论 -
springmvc中使用webuploader上传多张图片;maven中读取配置文件中的属性(路径)
工作中用到了这里,要上传多张图片,但是调试的过程中发现会出现路径问题,特此记录,供大家参考吧前提:自行下载webuploader工具包jsp文件(js一并写在这里):webuploader image demo图片上传选择文件 // 图片上传demo jQuery(function() { var $ = j原创 2018-01-26 15:43:05 · 688 阅读 · 0 评论