11 2020 档案

摘要:,produces = "text/json;charset=UTF-8"在Controller类中有return JSON.toJSONString返回的@RequestMapping加上这句话 eg:@RequestMapping(value = "/listPage",method = Req 阅读全文
posted @ 2020-11-30 19:19 小韩呐~ 阅读(59) 评论(0) 推荐(0)
摘要:最先准备的就是你要去码云上面注册一下账号。 然后常见属于自己的仓库,接下来才能完成下面的操作。 一:第一步选择自己的项目,右击选择Team,然后选择Share Project 二: 三: 四:如图表示,咱们的项目已经选好,但是还没提交到本地仓库 五:右击选中刚才选好的项目,选择Team,选择Comm 阅读全文
posted @ 2020-11-26 18:57 小韩呐~ 阅读(115) 评论(0) 推荐(0)
摘要:web.xml文件 <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd" ><web-app xmlns: 阅读全文
posted @ 2020-11-25 14:41 小韩呐~ 阅读(164) 评论(0) 推荐(0)
摘要:package com.hp.test;import redis.clients.jedis.Jedis;import java.io.*;public class Test3 implements Serializable { private static final long serialVer 阅读全文
posted @ 2020-11-25 10:29 小韩呐~ 阅读(1130) 评论(0) 推荐(0)
摘要:public static void main(String[] args) { for(int i=1;i<10;i++) { for(int j=1;j<=i;j++){ System.out.print(j+"*"+i+"="+j*i+" "); } System.out.println(); 阅读全文
posted @ 2020-11-13 13:02 小韩呐~ 阅读(85) 评论(0) 推荐(0)
摘要:for each + map.keySet(); Set<Integer> set = map.keySet(); for (Integer key : set) { System.out.println("key:" + key + ", value:" + map.get(key)); } 阅读全文
posted @ 2020-11-12 19:14 小韩呐~ 阅读(1217) 评论(0) 推荐(0)
摘要://从键盘输入年份存放到变量year中 Scanner scanner=new Scanner(System.in); int year=scanner.nextInt(); //用if-else结构判断year中的年份是否为闰年 if(year%4==0 &&year % 100!=0 || ye 阅读全文
posted @ 2020-11-12 18:56 小韩呐~ 阅读(573) 评论(0) 推荐(0)
摘要:报的错误: [root@master bin]# ./startup.sh Cannot find /root/app/tomcat-9.0.7/bin/setclasspath.shThis file is needed to run this program 解决的办法: [root@maste 阅读全文
posted @ 2020-11-04 20:42 小韩呐~ 阅读(120) 评论(0) 推荐(0)
摘要:错误内容:Multiple annotations found at this line: - The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 解决方案 第一步:选择项目右键点击 阅读全文
posted @ 2020-11-04 20:16 小韩呐~ 阅读(186) 评论(0) 推荐(0)