java
ZGGGG.
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
idea lombok get/set 错误解决
网络上很很多勾选Enable annotation processing 但是没有用 我最终解决是添加POM如下,并且刷新maven,完美解决 <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.0</version> </dependency> ...原创 2020-09-04 10:51:47 · 595 阅读 · 0 评论 -
java简单爬虫
URL getUrl =new URL("http://www.weather.com.cn/data/sk/101230201.html"); //创建URl连接 HttpURLConnection connection = (HttpURLConnection) getUrl.openConnection(); //建立连接 connection.connect...原创 2019-09-18 00:39:36 · 151 阅读 · 0 评论 -
Ajax异步请求,
前端 <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+requ...原创 2019-09-06 12:35:52 · 171 阅读 · 0 评论 -
swing聊天室
服务器端 //服务器中不停的接收客户端的链接多线程类 public class Server implements Runnable{ private ServerSocket server; private boolean isRunnable=false; private BackInterface back; ServerClientSocket socket; public Serv...原创 2019-08-30 11:12:56 · 365 阅读 · 0 评论 -
重定向与转发
pageContext.setAttribute("page", "page");//1 request.setAttribute("requset", "requset");//2 session.setAttribute("session", "session");//3 application.setAttribute("application", "application");//4 ...原创 2019-08-30 10:58:04 · 114 阅读 · 0 评论 -
输入输出流
public static void main(String[] args) { // TODO Auto-generated method stub File file=new File("a.txt"); if (!file.exists()) { boolean flag; try { flag = file.createNewFile();//创建 ...原创 2019-08-12 17:21:27 · 255 阅读 · 0 评论 -
集合set list HashMap Collection与Collections
Collections是Collection的工具类 集合遍历的方法 map.entrySet();2次封装HashMap进Set;翻译 2019-07-27 15:16:01 · 159 阅读 · 0 评论 -
集合LinkedList
ArrayList类的常用方法 LinkedList 迭代器 Iterator<String> iterator=list.iterator(); while(iterator.hasNext()){ System.out.print(iterator.next()+" "); }翻译 2019-07-27 15:02:31 · 98 阅读 · 0 评论 -
Calendar 设置某年某月的日历
package day5; import java.util.Calendar; import java.util.Scanner; public class date { public static void main(String[] args) { System.out.println("输入年"); String weet[]={"星期7","星期1","星期2...原创 2019-07-26 13:03:41 · 6049 阅读 · 0 评论 -
链接数据库
public static void main(String[] args) { // TODO Auto-generated method stub Connection con=null;//链接对象 Statement sta=null;//语句对象(写sql) try { //1.加载并注册 Class.forName("com.mysql.jd...原创 2019-08-02 16:04:48 · 170 阅读 · 0 评论
分享