如何利用宝塔部署前后端分离项目(vue+springboot)
一、前后端项目进行打包

注意事项
-
后端跨域代码配置:
package com.quanxiaoha.weblog.web.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.cors.CorsConfiguration; import org.springframework.web.cors.UrlBasedCorsConfigurationSource; import org.springframework.web.filter.CorsFilter; import org.springframework.web.servlet.config.annotation