01 2021 档案
摘要:1、基于ClassLoder读取配置文件 注意:该方式只能读取类路径下的配置文件,有局限但是如果配置文件在类路径下比较方便。 Properties properties = new Properties(); //使用ClassLoader加载properties配置文件生成对应的输入流 Input
阅读全文
摘要:前端解决跨域问题 $.ajax( 'http://xx.xx.xx.xx:8090/xx/xx', { method:"POST", contentType:"application/x-www-form-urlencoded;charset=utf-8", dataType:"json", dat
阅读全文
摘要:用maven管理库依赖,有个好处就是连同库的依赖的全部jar文件一起下载,但同时也带来了同一个jar会被下载了不同版本的问题, 当然maven也考虑到解决办法,可以使用exclusions来排除相应的重复依赖 <dependency> <groupId>org.activii</groupId> <
阅读全文