获取命令行输出内容的方式有传统和异步两种方式. 传统方式: public static void RunExe(string exePath, string arguments, out string output, out string error) { using (Process process = new System.Diagnostics.Process()) { process.StartInfo.FileName = exePath; process.StartInfo.Argu…
01,Could not autowire. No beans of 'UserMapper' type found 01.1,问题描述,通过反射动态实现的接口在调用时会出现以上提示,常见的如 ORM 框架的 Dao 层 01.2,该错误不是代码问题,可以手动关闭该错误 01.3,Settings - Editor - Inspections - Spring - Spring Core - Code - Autowiring for Bean Class 01.4,去掉方括号里面的勾选 02,…
bat echo 输出内容为不同的颜色 先看代码: @echo off SETLOCAL EnableDelayedExpansion for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do ( set "DEL=%%a" ) rem echo say the name of the colors,…