上一页 1 ··· 7 8 9 10 11
摘要: public static void main(String[] args) { Map map= new HashMap(); map.put("",null); map.put(1,1); //map转json的两种方式; System.out.println(new JSONObject(ma 阅读全文
posted @ 2020-05-07 15:13 大日很忧伤 阅读(1593) 评论(0) 推荐(1) 编辑
摘要: 最近项目联调完毕,等待上线,闲来无事,整理一波spring的注解 一.声明bean的注解 @Controller 在展现层使用,控制器的声明(controller层);此处与@RestController注解有点差异,@RestController相当于@Controller+@ResponseBo 阅读全文
posted @ 2020-05-07 11:33 大日很忧伤 阅读(206) 评论(0) 推荐(1) 编辑
摘要: 最近看到一个秒杀系统,本来打算自己本地走个test,没想到好久不搭建项目,一下子走了好多坑,话不多说 1.在启动类这里写dao.* @MapperScan(basePackages = "com.example.demo.*")此处会报错,详情如下,找不到serviceorg.apache.ibat 阅读全文
posted @ 2020-04-29 15:55 大日很忧伤 阅读(267) 评论(0) 推荐(1) 编辑
摘要: 页面上有一段说明是ftp上指定路径下word文档的全部内容 try { //word文档在ftp上路径 String road = "/" + oaDirectory; Session session = null; Channel channel = null; JSch jsch = new J 阅读全文
posted @ 2020-04-24 16:53 大日很忧伤 阅读(281) 评论(0) 推荐(1) 编辑
上一页 1 ··· 7 8 9 10 11