- C#/.Net
- 数据库(orcal/mysql)
- Mybatis
- java
- 注解
- kotlin
- Vue
- Windows
and factory_code in #{factoryCode}
javaMySQL查询在使用的表和正在进行的进程
show open tables where in_use>0;
show PROCESSLIST;
SELECt * FROM information_schema.INNODB_TRX;
show global variables like ‘wait_timeout’;
注解Tomcat修改启动名称:bin>catalina.bat if “%TITLE%” == set TITLE = 项目名称
| 注解 | 用途 |
|---|---|
| @Transactional(rollbackFor = Exception.class) | 异常回滚注解:遇到所有异常都会回滚 |
| @Service(“stockInOutRecordService”) | service层注解,写在service层接口的实现类上 |
| @Override | 用在实现接口功能的方法上 |
| @Autowired | 用来引用其他类 |
| @Resource | 用来引用其他类-按名匹配 |
| @RestController | Controller层注解 |
| @Controller | Controller层注解 |
| @RequestMapping(“/continuance”) | 请求-用在类上 |
| @PostMapping(“/addTargetValue”) | 请求-用在方法上 |
| @GetMapping(“/breathDetailList”) | 请求-用在方法上-无参 |
| @PathVariable(“targetId”) | 链接:/selectAllProduct/{targetId} 中 targetId 的值,用在接收参数前 |
| @RequestBody | 用在接收参数前,参数一般为实体/已有直接用在接收方法上的情况 |
| @RequestParam(“factoryCode”) | 链接:/base_data?factory=123&online_point_code=123; 中factory的值,用在接收参数前 |
| @Param(“billsCode”) | 用在Mapper接口给Mapper.xml传的参数前 |
| @Repository | 用在Mapper接口文件上 |
| @Mapper | 用在Mapper接口文件上 |
| @Component | 注解 |
- 传空值时 null 会使Mybatis 报错 无效的列类型:111
此时应该去检查传入的参数 若需要为空则在传入的空值后面加上对应的数据类型即可 - 后端忘记写get set 方法 会导致前端接收到的值为null(此时后端显示传值不为null)
- idea启动项目遇到 不能解析依赖包 | 将项目中的子项目进行打包 | clean -> package ->install
安卓项目gradle配置:distributionUrl=https://downloads.gradle-dn.com/distributions/gradle-6.7.1-all.zip
雷电模拟器连接AS:adb.exe connect 127.0.0.1:5555
Vue遇到构建失败:
Cause: unable to find valid certification path to requested target
找到 build.gradle文件:
改为以下代码:
repositories {
maven { url ‘https://maven.aliyun.com/nexus/content/repositories/google’ }
maven { url ‘https://maven.aliyun.com/nexus/content/repositories/jcenter’}
}
Windows取消npm的验证------------------: npm set strict-ssl false
强制清除npm缓存---------------: npm cache clear --force
降低版本---------------------------: npm install npm@6.14.14 -g
报错find python 问题 管理员–: npm install --global --production windows-build-tools
远程桌面:cmd > mstsc
本机ip地址、默认网关、子网掩码:cmd > ipconfig
服务器运行jar包: cmd> java –jar + 包名.jar
登录时遇到凭据不工作:(缺少域账户):corp用户名
--MySQL查询在使用的表和正在进行的进程 show open tables where in_use>0; show PROCESSLIST; SELECT * FROM information_schema.INNODB_TRX; show global variables like 'wait_timeout';



