上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: 在下边这个窗口重新输入一次密码就好 阅读全文
posted @ 2021-09-09 09:49 博麗靈夢 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 使用 request 传值 使用步骤 在 Servlet 里的 doGet 或 doPost 使用 req.setAttribute(String name, Object o) 方法设置要传值的键值对 继续使用 req.getRequestDispatcher(String path) 得到 Re 阅读全文
posted @ 2021-09-09 08:00 博麗靈夢 阅读(484) 评论(0) 推荐(0) 编辑
摘要: import java.sql.* object Main { @JvmStatic fun main(args: Array<String>) { // 加载 oracle thin 驱动 val driverName = "jdbc:oracle:thin" // 数据库地址和端口 val ho 阅读全文
posted @ 2021-09-07 18:11 博麗靈夢 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 网上搜 RxBinding 找到的都是这种代码 RxTextView.textChanges(edIP) 而在新版的 RxBinding 里已经去除了这个类 (大概) 新版的用法是 binding.edIP.textChanges() 阅读全文
posted @ 2021-09-04 07:49 博麗靈夢 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 最后返回 false 就好 阅读全文
posted @ 2021-09-03 07:06 博麗靈夢 阅读(108) 评论(1) 推荐(0) 编辑
摘要: 首先,在 string.xml 里定义类似于这样的东西 <string name="tv_device_info">当前温度为: %s ℃ 当前电量为 %s %%</string> 然后,在 Java 里这样调用 binding.tvDeviceInfo.text = String.format(g 阅读全文
posted @ 2021-09-02 21:55 博麗靈夢 阅读(72) 评论(0) 推荐(0) 编辑
摘要: talk is easy, show the code import Process.MaxResource.aMax import Process.MaxResource.bMax import Process.MaxResource.cMax import Process.MaxResource 阅读全文
posted @ 2021-08-30 08:38 博麗靈夢 阅读(149) 评论(0) 推荐(0) 编辑
摘要: talk is easy, show the code import java.util.* import kotlin.math.abs /** * 磁盘调度算法工厂类, 构造器私有化, 防止外部类实例化 */ class DiskScheduleFactory private construct 阅读全文
posted @ 2021-08-30 08:18 博麗靈夢 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 需要下载 Tomcat 如图 但是,默认的似乎有问题 Servlet 似乎没有创建成功,总之就是各种毛病 一番百度后发现了原因: 依赖有问题,需要把本来默认的 compileOnly 改成 implementation('jakarta.servlet.jsp:jakarta.servlet.jsp 阅读全文
posted @ 2021-08-29 15:09 博麗靈夢 阅读(176) 评论(0) 推荐(1) 编辑
摘要: 虽然这是 kotlin 但本质上都一样啦 加载代码 import java.io.File import java.net.URLClassLoader object Main { @JvmStatic fun main(args: Array<String>) { val clazzFile = 阅读全文
posted @ 2021-08-23 08:14 博麗靈夢 阅读(431) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页