前提是已经配置好了相应的外网和内网端口的映射 一.公网ip和端口配置 在vue项目启动之前对项目下:项目名/config/index.js 文件进行修改 原来的内容为:(位置在index.js的第16,17行作用) host: 'localhost', // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free…
项目启动报了一堆错误,其实都是class path resource [com/ssm/mapping/] cannot be resolved to URL because it does not exist这一个错误引起的 原来的session工厂的配置是这样写的 <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean"> <property na…
用npm run dev 运行vue项目时,出现以下错误: ERROR Failed to compile with errors :: This dependency was not found: * !!vue-style-loader!css-loader?{!./Index.vue in ./src/components/Index.vue To !./Index.vue 解决方法,看错误中列出了哪几个模块,都给装上: npm install stylus-loader css-load…