随笔分类 -  服务器开发

摘要:<%-- Created by IntelliJ IDEA. User: 绿波亭 Date: 2023/5/29 Time: 14:51 To change this template use File | Settings | File Templates. --%> <%@ page conte 阅读全文
posted @ 2023-06-02 21:16 子过杨梅 阅读(4) 评论(0) 推荐(0) 编辑
摘要:创建和添加HttpSession session = request.getSession();session.setAttribute("customerInfo","1");12设置过期时长:1.1:在主页面或者公共页面中加入:session.setMaxInactiveInterval(15* 阅读全文
posted @ 2023-05-29 22:05 子过杨梅 阅读(16) 评论(0) 推荐(0) 编辑
摘要:1) 定义: char: 固定长度,存储ANSI字符,不足的补英文半角空格。 nchar: 固定长度,存储Unicode字符,不足的补英文半角空格 varchar: 可变长度,存储ANSI字符,根据数据长度自动变化。 nvarchar: 可变长度,存储Unicode字符,根据数据长度自动变化。 nv 阅读全文
posted @ 2023-05-27 18:59 子过杨梅 阅读(100) 评论(0) 推荐(0) 编辑
摘要:String sql = "select * from activity where activity_sub Like '%"+str+"%'"; Class.forName("com.mysql.jdbc.Driver"); String url = "jdbc:mysql://localhos 阅读全文
posted @ 2023-05-25 21:33 子过杨梅 阅读(7) 评论(0) 推荐(0) 编辑
摘要:勾选服务器块中第二栏 阅读全文
posted @ 2023-05-25 09:48 子过杨梅 阅读(4) 评论(0) 推荐(0) 编辑
摘要:<%@ page import="wangzhan.Thesql" %> <%@ page import="com.mysql.cj.Session" %> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEnc 阅读全文
posted @ 2023-05-23 00:18 子过杨梅 阅读(10) 评论(0) 推荐(0) 编辑
摘要:<a href="javascript:history.back(-1)"><button type="button">返回</button></a> 阅读全文
posted @ 2023-05-19 21:57 子过杨梅 阅读(12) 评论(0) 推荐(0) 编辑
摘要:// Copyright (c) 2006 Damien Miller <djm@mindrot.org> // // Permission to use, copy, modify, and distribute this software for any // purpose with or w 阅读全文
posted @ 2023-05-18 21:26 子过杨梅 阅读(11) 评论(0) 推荐(0) 编辑
摘要:Class.forName("com.mysql.cj.jdbc.Driver"); 阅读全文
posted @ 2023-05-17 21:55 子过杨梅 阅读(9) 评论(0) 推荐(0) 编辑
摘要:public Connection connect; public Thesql()throws Exception { Class.forName("com.mysql.jdbc.Driver"); String url="jdbc:mysql://localhost:3306/pddabc?us 阅读全文
posted @ 2023-05-16 22:08 子过杨梅 阅读(11) 评论(0) 推荐(0) 编辑
摘要:target=“_blank” 在<a>内写入 阅读全文
posted @ 2023-05-15 22:03 子过杨梅 阅读(19) 评论(0) 推荐(0) 编辑
摘要:import java.io.File;import java.awt.Desktop; public class OpenFileExample { public static void main(String[] args) { String filePath = "C:\\Users\\Use 阅读全文
posted @ 2023-05-12 22:11 子过杨梅 阅读(2) 评论(0) 推荐(0) 编辑
摘要:<%@ page import="wangzhan.Thesql" %> <%@ page import="com.mysql.cj.Session" %> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEnc 阅读全文
posted @ 2023-05-11 21:33 子过杨梅 阅读(7) 评论(0) 推荐(0) 编辑
摘要:import java.io.File; public class FileTraversal { public static void main(String[] args) { // 要遍历的文件路径 String filePath = "C:\\Users\\username\\Documen 阅读全文
posted @ 2023-05-10 21:08 子过杨梅 阅读(19) 评论(0) 推荐(0) 编辑
摘要:与文件管理系统和文件集合相关联的是文件目录,它包含有关文件的信息,包括属性、 位置和所有权等,这些信息主要是由操作系统进行管理。首先我们来看目录管理的基本要求: 从用户的角度看,目录在用户(应用程序)所需要的文件名和文件之间提供一种映射,所以目录管理要实现“按名存取”;目录存取的效率直接影响到系统的 阅读全文
posted @ 2023-05-09 20:47 子过杨梅 阅读(66) 评论(0) 推荐(0) 编辑
摘要:&nbsp; 阅读全文
posted @ 2023-04-28 21:20 子过杨梅 阅读(15) 评论(0) 推荐(0) 编辑
摘要:由于get传值跟在网址后,post在特定的区域需要字符编译(大概意思,不准确),需要对编码进行设置 request.setCharacterEncoding("UTF-8"); 阅读全文
posted @ 2023-04-27 21:38 子过杨梅 阅读(4) 评论(0) 推荐(0) 编辑
摘要:<a href="javascript:history.back(-1)"> 阅读全文
posted @ 2023-04-26 22:06 子过杨梅 阅读(7) 评论(0) 推荐(0) 编辑
摘要:<div id="pagination"> <%-- 显示翻页链接 --%> <%-- &les=<%=les%>&pu=<%=pu%>&stu=<%=stu%>--%> <a href="?page=<%= Math.max(1, currentPage - 1) %>&les=<%=les%>& 阅读全文
posted @ 2023-04-24 21:43 子过杨梅 阅读(14) 评论(0) 推荐(0) 编辑
摘要:<script type="text/javascript"> let titles=document.querySelectorAll('.Titlename'); for(let titlle of titles){ titlle.title=titlle.innerHTML; } </scri 阅读全文
posted @ 2023-04-21 21:58 子过杨梅 阅读(11) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示