终端运行: 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>