上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: 只要使用 Lombok 的 Constructor 相关注解就可以了 阅读全文
posted @ 2022-03-12 09:42 博麗靈夢 阅读(112) 评论(0) 推荐(0)
摘要: 不能直接点 否则就会出现错误 因为直接点运行出现的是 Gradle 任务 正常情况下使用的是 JUnit 任务 因此,需要手动点击 + 创建 JUint 任务 设置好 JDK、运行模块、测试类 就好了 阅读全文
posted @ 2022-03-12 09:40 博麗靈夢 阅读(770) 评论(0) 推荐(0)
摘要: 看代码 ⑧ @Select("SELECT * FROM t_emps WHERE name like \"%\"#{pattern}\"%\"") List<Emp> findPatternInEmp(@Param("pattern") String pattern); 阅读全文
posted @ 2022-03-09 15:28 博麗靈夢 阅读(144) 评论(0) 推荐(0)
摘要: 百度的千篇一律的复制粘贴的帖子真是哈人, 好帖子还很难找到 来源 c++ 在 cmakelist.txt 添加 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fexec-charset=GBK") c 语言 在 cmakelist.txt添加CMAKE 阅读全文
posted @ 2022-02-20 12:24 博麗靈夢 阅读(235) 评论(1) 推荐(0)
摘要: 首先, 需要有一个 像这样的 atlas 文件 和一个像这样的 图片 文件 这个可以通过 工具 生成 然后就是写代码的环节了 定义两个关键变量 private val atlas = TextureAtlas(Gdx.files.classpath("t/123.atlas")) private v 阅读全文
posted @ 2022-02-17 15:27 博麗靈夢 阅读(129) 评论(0) 推荐(0)
摘要: 仓库地址 阅读全文
posted @ 2022-02-17 14:44 博麗靈夢 阅读(119) 评论(0) 推荐(0)
摘要: 主要就是这两个地方 plugins { id 'java' id 'com.github.johnrengelman.shadow' version '7.1.2' } shadowJar { manifest.attributes.put("Implementation-Version", arc 阅读全文
posted @ 2022-02-14 11:31 博麗靈夢 阅读(1712) 评论(0) 推荐(0)
摘要: LibGDX 有两种判断按键是否按下的方法 Gdx.input.isKeyJustPressed(int keyCode) 和 Gdx.input.isKeyPressed(int keyCode) 前者在按键 按下 与 松开 都会返回 true 后者只有当按键 按下 时才会返回 true 因此, 阅读全文
posted @ 2022-02-12 13:54 博麗靈夢 阅读(44) 评论(0) 推荐(0)
摘要: 将 jdbcUrl 设置为这个就好 数据库文件路径为 main/resources/chinese.db jdbc:sqlite::resource:chinese.db 2022-1-30 补充 使用这种方法方法存放 SQLite 文件有个坏处,不能对其进行 写 操作 如图 看似能成功写入,实际上 阅读全文
posted @ 2022-01-27 10:48 博麗靈夢 阅读(840) 评论(0) 推荐(0)
摘要: 如图 解决方法: 目前最新 kotlin 版本为 1.6.10 添加 org.jetbrains.kotlin:kotlin-reflect:1.6.10 进编译路径 参考 implementation("org.jetbrains.kotlin:kotlin-reflect:1.6.10") 阅读全文
posted @ 2022-01-21 19:18 博麗靈夢 阅读(1545) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页