上一页 1 ··· 28 29 30 31 32
摘要: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:s 阅读全文
posted @ 2021-11-08 18:50 又一岁荣枯 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 1、字符串转数组 使用Java split() 方法 split() 方法根据匹配给定的正则表达式来拆分字符串。 注意: . 、 | 和 * 等转义字符,必须得加 \\。多个分隔符,可以用 | 作为连字符。 // 字符串转数组 java.lang.String String str = "0,1,2 阅读全文
posted @ 2021-11-06 15:56 又一岁荣枯 阅读(538) 评论(0) 推荐(0) 编辑
摘要: 这时我们只需要在连接数据库的url上设置:useSSL=false就可以了。 阅读全文
posted @ 2021-11-06 15:01 又一岁荣枯 阅读(1850) 评论(0) 推荐(0) 编辑
摘要: public class MySQL { final String JDBC_DRIVER = "com.mysql.cj.jdbc.Driver"; final String DB_URL = "jdbc:mysql://localhost:3306/student_message?serverT 阅读全文
posted @ 2021-11-04 23:36 又一岁荣枯 阅读(194) 评论(0) 推荐(0) 编辑
摘要: static final String JDBC_DRIVER = "com.mysql.cj.jdbc.Driver"; static final String DB_URL = "jdbc:mysql://localhost:3306/123?serverTimezone=UTC&charact 阅读全文
posted @ 2021-11-03 21:15 又一岁荣枯 阅读(143) 评论(0) 推荐(0) 编辑
摘要: ctrl+shift+alt:多行操作psvm:生成main()方法;fori:生成for循环;Ctrl+Alt+v:自动补齐返回值类型ctrl+o:覆写方法ctrl+i:实现接口中的方法ctrl+shift+u:大小写转换CTRL+SHIFT+Z:取消撤销Alt+Insert:生成构造方法、get 阅读全文
posted @ 2021-11-03 16:29 又一岁荣枯 阅读(33) 评论(0) 推荐(0) 编辑
摘要: resp.setHeader("Content-disposition","attachment;filename="+filename); 阅读全文
posted @ 2021-10-31 10:25 又一岁荣枯 阅读(147) 评论(0) 推荐(0) 编辑
摘要: <!--在build中配置resources, 来防止我们资源导出失败问题--> <build> <resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties< 阅读全文
posted @ 2021-10-31 09:11 又一岁荣枯 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 采用 https://blog.csdn.net/GK666_/article/details/106442929得到解决 阅读全文
posted @ 2021-10-30 14:58 又一岁荣枯 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 创建Maven项目时在此页面添加 archetypeCatalog internal 即可 阅读全文
posted @ 2021-10-30 14:40 又一岁荣枯 阅读(85) 评论(0) 推荐(0) 编辑
上一页 1 ··· 28 29 30 31 32