miller
发布于

springboot 若依前后分离项目,打包成一个jar 运行

前后端操作

https://blog.csdn.net/qq_40622375/article/details/143467032
https://blog.csdn.net/zwz1342/article/details/139866631

解决vue、springboot项目打包后刷新出现404的问题

https://blog.csdn.net/darabiuz/article/details/122908160

package com.ruoyi.framework;

import org.springframework.boot.web.server.ErrorPage;
import org.springframework.boot.web.server.ErrorPageRegistrar;
import org.springframework.boot.web.server.ErrorPageRegistry;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Component;

@Component
public class ErrorConfig implements ErrorPageRegistrar {

    @Override
    public void registerErrorPages(ErrorPageRegistry registry) {
        ErrorPage error404Page = new ErrorPage(HttpStatus.NOT_FOUND, "/");
        registry.addErrorPages(error404Page);
    }
}

若依关闭redis

https://blog.csdn.net/weixin_43684214/article/details/127773165

引入mybatis-plus

https://doc.ruoyi.vip/ruoyi/document/cjjc.html#%E9%9B%86%E6%88%90mybatis-plus%E5%AE%9E%E7%8E%B0mybatis%E5%A2%9E%E5%BC%BA

浏览 (287)
点赞
收藏
评论