Loading

摘要: 通过反射调用方法,以简化Servlet数量。 class BashServlet package com.demo.servlet; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; impor 阅读全文
posted @ 2021-06-11 01:08 Xaf17 阅读(68) 评论(2) 推荐(0)
摘要: <template> <div></div> </template> <script> //这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等) //例如:import 《组件名称》 from '《组件路径》'; export default { //import 阅读全文
posted @ 2021-06-10 17:14 Xaf17 阅读(252) 评论(0) 推荐(0)
摘要: java文件中包含3700行 /** * Returns the {@code Class} object associated with the class or * interface with the given string name. Invoking this method is * e 阅读全文
posted @ 2021-06-08 22:07 Xaf17 阅读(25) 评论(0) 推荐(0)
摘要: 多达六千行代码(含空格与注释)。有必要将此作为一个实例,结合理论来学习。 class header: public class ConcurrentHashMap<K,V> extends AbstractMap<K,V> implements ConcurrentMap<K,V>, Seriali 阅读全文
posted @ 2021-06-07 15:47 Xaf17 阅读(28) 评论(1) 推荐(0)
摘要: /* * Copyright (c) 1994, 2016, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 阅读全文
posted @ 2021-06-07 14:17 Xaf17 阅读(60) 评论(0) 推荐(0)
摘要: /* * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 阅读全文
posted @ 2021-06-03 20:45 Xaf17 阅读(42) 评论(0) 推荐(0)
摘要: dependency <dependencies> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>4.0.1</version> <scope>pro 阅读全文
posted @ 2021-05-26 14:22 Xaf17 阅读(133) 评论(0) 推荐(0)
摘要: 步骤 安装node.js 编写程序 目录结构 Project hello-world-project - run.bat - server.js server.js const http = require('http'); const hostname = '127.0.0.1'; const p 阅读全文
posted @ 2021-05-25 21:10 Xaf17 阅读(44) 评论(0) 推荐(0)
摘要: sql不要写成一行,分段写。 程序中动态sql采用占位符写法(也分段写)进行动态替换(而非字符串拼接)。 单表 tableA(mk, a1, a2, fk_rb_a1) 查询 样例1: 查询表中价格在[100, 200]间的记录 query zero or some items select mk, 阅读全文
posted @ 2021-05-25 19:04 Xaf17 阅读(84) 评论(0) 推荐(0)
摘要: java中常常使用此作为屏幕的输出。 众所周知,在java这种OOP语言,对屏幕作输出内容,分为两步, // 将对屏幕的输出抽象为一个输出流对象 // 注意,此处并未使用new创建对象,而是使用System提供的out PrintStream out=System.out; // 对屏幕输出内容,即 阅读全文
posted @ 2021-05-23 12:49 Xaf17 阅读(265) 评论(0) 推荐(0)