上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: 出现这个问题大都是因为下载的 JDK 的 Archive 版,手动安装 JDK 没有设置注册表的信息就会造成这种问题,解决办法也很简单: 注册表定位到 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment 我这儿是 JDK 阅读全文
posted @ 2021-09-21 11:52 博麗靈夢 阅读(322) 评论(0) 推荐(0)
摘要: 最简单的办法 在 Servlet 里处理响应的方法最顶上加上一行代码 req?.characterEncoding = Charsets.UTF_8.toString() 具体如下 override fun doPost(req: HttpServletRequest?, resp: HttpSer 阅读全文
posted @ 2021-09-09 10:14 博麗靈夢 阅读(65) 评论(0) 推荐(0)
摘要: 在下边这个窗口重新输入一次密码就好 阅读全文
posted @ 2021-09-09 09:49 博麗靈夢 阅读(491) 评论(0) 推荐(0)
摘要: 使用 request 传值 使用步骤 在 Servlet 里的 doGet 或 doPost 使用 req.setAttribute(String name, Object o) 方法设置要传值的键值对 继续使用 req.getRequestDispatcher(String path) 得到 Re 阅读全文
posted @ 2021-09-09 08:00 博麗靈夢 阅读(630) 评论(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 博麗靈夢 阅读(306) 评论(0) 推荐(0)
摘要: 网上搜 RxBinding 找到的都是这种代码 RxTextView.textChanges(edIP) 而在新版的 RxBinding 里已经去除了这个类 (大概) 新版的用法是 binding.edIP.textChanges() 阅读全文
posted @ 2021-09-04 07:49 博麗靈夢 阅读(159) 评论(0) 推荐(0)
摘要: 最后返回 false 就好 阅读全文
posted @ 2021-09-03 07:06 博麗靈夢 阅读(121) 评论(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 博麗靈夢 阅读(83) 评论(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 博麗靈夢 阅读(176) 评论(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 博麗靈夢 阅读(222) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页