Visual Studio Code 前端+IDEA 后端 Q&A

毋炳
2023-12-01

前端

终端运行: npm run dev

报错:系统接口500异常
Proxy error: Could not proxy request /captchaImage from 192.168.31.155 to http://localhost:8080/.
See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).
解决:
前后端都重新运行,需要处于运行中
vue.config.js 修改:
devServer: {
// host: ‘0.0.0.0’,
host: ‘localhost’,
// port: port,
port: 8080,
open: true,
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
target: http://localhost:8080,
changeOrigin: true,
pathRewrite: {
[’^’ + process.env.VUE_APP_BASE_API]: ‘’
}
}
},
disableHostCheck: true
},

设置前端显示从某个表MySQL中提信息:
后端api接口问题

需注意node版本(node --version)

后端

提取信息正确但是不显示应出现的数据查询:

修改判断符号:
案例:

<if test="taxNumber != null  and taxNumber != ''">AND TaxNumber = "%${taxNumber}%"</if>
  • 修改=为LIKE
  • 修改%${taxNumber}% 为 ${taxNumber}(去除%%符号)
 类似资料: