eclipse

【Eclipse】【3】checkstyle插件

旧巷老猫 提交于 2021-01-07 05:38:25
用途: 自动化检查代码是否规范 安装方法: 1,离线安装 (1)下载安装包( http://sourceforge.net/projects/eclipse-cs/ ) (2)将压缩包中features文件夹和plugins文件夹的复制到eclipse中的根目录中进行覆盖 (3)打开eclipse,Window→Preferences,如果列表中出现了checkstyle的菜单,则表示安装成功了 注:如果启动eclipse时,提示ClassNotFoundException等异常信息,则启动时加上一个“-clean”参数启动即可 2,在线安装 (1)Help → Install New Software → Work with: http://eclipse-cs.sourceforge.net/update 输入后回车 → 底部框框内Select All 注:安装过程中出现警告,直接点OK 导入自己的规则: (1)Window → Preferences → checkstyle → New... (2)Type:External Configuration File;Location:选择文件路径;勾选Protect Checkstyle configuration file → OK (3)Global check Configurations :选择刚刚导入的文件 →

Eclipse/OSGI, Java 11, JAXB, and the Classloader

一曲冷凌霜 提交于 2021-01-07 01:21:08
问题 I have two Java modules, A and B. A provides a core model with JAXB annotations and helper classes for creating doing JAXB stuff (creating the context, marshalling, unmarshalling, etc.) B provides additional classes that are included in the model via @XmlAnyElement(lax = true) and must therefore be added to the JAXB context. This works fine in plain Java - B's classloader sees all the relevant classes and can instantiate the JAXB context with: JAXBContext.newInstance(RootFromA.class,

Eclipse/OSGI, Java 11, JAXB, and the Classloader

与世无争的帅哥 提交于 2021-01-07 01:19:06
问题 I have two Java modules, A and B. A provides a core model with JAXB annotations and helper classes for creating doing JAXB stuff (creating the context, marshalling, unmarshalling, etc.) B provides additional classes that are included in the model via @XmlAnyElement(lax = true) and must therefore be added to the JAXB context. This works fine in plain Java - B's classloader sees all the relevant classes and can instantiate the JAXB context with: JAXBContext.newInstance(RootFromA.class,

Eclipse/OSGI, Java 11, JAXB, and the Classloader

醉酒当歌 提交于 2021-01-07 01:17:17
问题 I have two Java modules, A and B. A provides a core model with JAXB annotations and helper classes for creating doing JAXB stuff (creating the context, marshalling, unmarshalling, etc.) B provides additional classes that are included in the model via @XmlAnyElement(lax = true) and must therefore be added to the JAXB context. This works fine in plain Java - B's classloader sees all the relevant classes and can instantiate the JAXB context with: JAXBContext.newInstance(RootFromA.class,

Eclipse/OSGI, Java 11, JAXB, and the Classloader

↘锁芯ラ 提交于 2021-01-07 01:12:33
问题 I have two Java modules, A and B. A provides a core model with JAXB annotations and helper classes for creating doing JAXB stuff (creating the context, marshalling, unmarshalling, etc.) B provides additional classes that are included in the model via @XmlAnyElement(lax = true) and must therefore be added to the JAXB context. This works fine in plain Java - B's classloader sees all the relevant classes and can instantiate the JAXB context with: JAXBContext.newInstance(RootFromA.class,

fatal error: systemc.h: No such file or directory

时光毁灭记忆、已成空白 提交于 2021-01-05 07:22:47
问题 i am trying to build a project in Eclipse, which looks something like this: #include <iostream> #include <systemc.h> int sc_main() { ... } and I gat this error message: make all Building file: ../src/main.cpp Invoking: GCC C++ Compiler g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/main.d" -MT"src/main.d" -o "src/main.o" "../src/main.cpp" ../src/main.cpp:11:21: fatal error: systemc.h: No such file or directory compilation terminated. make: *** [src/main.o] Error 1 Note: I am new to

fatal error: systemc.h: No such file or directory

≯℡__Kan透↙ 提交于 2021-01-05 07:21:07
问题 i am trying to build a project in Eclipse, which looks something like this: #include <iostream> #include <systemc.h> int sc_main() { ... } and I gat this error message: make all Building file: ../src/main.cpp Invoking: GCC C++ Compiler g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/main.d" -MT"src/main.d" -o "src/main.o" "../src/main.cpp" ../src/main.cpp:11:21: fatal error: systemc.h: No such file or directory compilation terminated. make: *** [src/main.o] Error 1 Note: I am new to

改造工程步骤

非 Y 不嫁゛ 提交于 2021-01-05 04:05:27
背景: 对于存在有问题的项目(包括 代码不规范 数据库表命名不规范 )需要改造 系统业务架构: 步骤: 1 新建工程 : 将需要改造的项目拷贝一份 修改项目名称 2 将相应的表结构拷贝到新的数据库中 修改不直观的表名 字段的备注等 3 修改对应的代码 和数据库表字段对应 熟悉接口对应的相关类 找到与之相关的 注意: 1 并发幂等性(重试引起)控制 2 方法设置开关 3 金额存整数(元化为分) 4 解耦 (rocketMQ消息异步解耦) 加入状态机【待完成】 5 分库【垂直拆分 基本的思路就是按照业务模块来划分出不同的数据库】 分表【垂直拆分某个表中的字段比较多,可以新建立一张“扩展表”,将不经常使用或者长度较大的字段拆分出去放到“扩展表”中】 好处: 便于 管理、维护、监控、扩展 , 在高并发场景下,垂直分库一定程度上能够突破IO 、连接数及单机硬件资源的瓶颈,是大型分布式系统中优化数据库架构的重要手段。 注意:需要改写以前的查询语句【跨库join,分布式事务等】 跨库Join的几种解决思路 1 全局表【很少发生编号 像数据字典】 系统中所有模块都可能会依赖到的一些表,将这类表在其他每个数据库中均保存一份 2 字段冗余 【最复杂的还是数据一致性问题,这点很难保证】 3 数据同步 定时A库中的tab_a表和B库中tbl_b有关联,可以定时将指定的表做同步,通过ETL工具来实施 4

VSCode下Python环境搭建

左心房为你撑大大i 提交于 2021-01-05 02:59:37
2018.10.26 更新 新版的vscode 自动推荐 MagicPython --------------- 注 Python 3.3+,自带venv可以用来代替virtualenv. python -m venv <venv_name> vscode并没有项目的概念,点击" 文件->将文件夹添加到工作区",指定工作目录。 vscode的python插件 : Eclipse Keymap (可选. vscode的eclipse键位插件) Python Python Extension pack (这个插件,会装上一堆依赖插件) 将以下内容复制到用户设置 (文件->首选项->设置->用户设置): // 将设置放入此文件中以覆盖默认设置 { //可选 "workbench.colorTheme": "Visual Studio Dark", //可选,git路径 "git.path": "D:/tools/Git/cmd/git.exe", //可选,字体大小 "editor.fontSize": 16, //可选,在文件结尾插入空行 "files.insertFinalNewline": true, //可选,建议关掉。 python代码的规范检查。 "python.linting.enabled": false, //可选,自动激活环境, "python.terminal

第9章 第1节 开发工具

心已入冬 提交于 2021-01-04 10:16:06
● 请你说一下eclipse的常用操作快捷键 参考回答: 快捷键 描述 Ctrl+1 快速修复(最经典的快捷键,就不用多说了,可以解决很多问题,比如import类、try catch包围等) Ctrl+Shift+F 格式化当前代码 Ctrl+Shift+M 添加类的import导入 Ctrl+Shift+O 组织类的import导入(既有Ctrl+Shift+M的作用,又可以帮你去除没用的导入,很有用) Ctrl+Y 重做(与撤销Ctrl+Z相反) Alt+/ 内容辅助(帮你省了多少次键盘敲打,太常用了) Ctrl+D 删除当前行或者多行 Alt+↓ 当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了) Alt+↑ 当前行和上面一行交互位置(同上) Ctrl+Alt+↓ 复制当前行到下一行(复制增加) Ctrl+Alt+↑ 复制当前行到上一行(复制增加) Shift+Enter 在当前行的下一行插入空行(这时鼠标可以在当前行的任一位置,不一定是最后) Ctrl+/ 注释当前行,再按则取消注释 选择 Alt+Shift+↑ 选择封装元素 Alt+Shift+← 选择上一个元素 Alt+Shift+→ 选择下一个元素 Shift+← 从光标处开始往左选择字符 Shift+→ 从光标处开始往右选择字符 Ctrl+Shift+← 选中光标左边的单词 Ctrl+Shift+→