config settings when app and jvm reverse proxy (used to display pages generated by npm (like tomcat) on web pages)

dev: {
// Various Dev Server settings
contentBase: ROOT,
host: ip,
port: 8084, //This port can be set arbitrarily, no repetition is required, it is the address displayed when the page is opened
historyApiFallback: true,
open: true,
watchContentBase: true,
openPage: '',
watchOptions: {
ignored: /node_modules/,
aggregateTimeout: 300,
poll: false
},

 

 

 

 

 

 

proxyTable: {

'/api': {
target: 'http://192.168.244.1:8083', //Note: This is the local address and the port number in yml in eclipse Here is the reverse proxy
changeOrigin: true,
pathRewrite: {
'^/api': ''
}
}


},

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325114046&siteId=291194637