摘要: 热更使用 devtools 或者 alt + shit + f9 idea File|Settings|Preferences | Build, Execution, Deployment | Compiler : Build project automatically File|Settings| 阅读全文
posted @ 2023-01-19 15:18 vx_guanchaoguo0 阅读(24) 评论(0) 推荐(0) 编辑
摘要: servicex // 项目名 |- admin-ui // 管理服务前端代码(一般将UI和SERVICE放到一个工程中,便于管理) |- servicex-auth // 模块1 |- servicex-common // 模块2 |- servicex-gateway // 模块3 |- ser 阅读全文
posted @ 2023-01-19 14:12 vx_guanchaoguo0 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 创建资源库 前置 mysql 数据库 test 核心代码 KettleEnvironment.init(); DatabaseMeta databaseMeta = new DatabaseMeta("test-db", "MYSQL", "Native", "localhost", "test1" 阅读全文
posted @ 2023-01-19 13:28 vx_guanchaoguo0 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 一般是版本不兼容 Exception in thread "main" java.lang.UnsupportedClassVersionError: org/eclipse/swt/events/ShellListener has been compiled by a more recent ve 阅读全文
posted @ 2023-01-19 12:59 vx_guanchaoguo0 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 如果是 brew 安装卸载 brew uninstall java 手动安装卸载 sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin sudo rm -fr /Library/PreferencesPanes/JavaCon 阅读全文
posted @ 2023-01-19 12:01 vx_guanchaoguo0 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 有两大用处 FilteredRelation类允许为查询集增加一个ON从句 可以在多个join中语句直接引用变量 from django.db.models import FilteredRelation, Q result_1 = Restaurant.objects.annotate(pizza 阅读全文
posted @ 2023-01-19 09:31 vx_guanchaoguo0 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 直接说答案 <= Django 1.6 只能在使用代码过滤 somethings = Foo.objects.filter(author="author").prefetch_related("bar_set") for a in somethings: somebars = [p for p in 阅读全文
posted @ 2023-01-19 09:19 vx_guanchaoguo0 阅读(17) 评论(0) 推荐(0) 编辑