How to integrate Antd SpringBoot

@RequestMapping("/api/**")
public ApiResult api(HttpServletRequest request, HttpServletResponse response){
    return apiProxy.proxy(request, reponse);
}

@RequestMapping(value="/**", method=HTTPMethod.GET)
public String index(){
    return "index"
}
The

Ant Design Pro documentation describes this, but the question is, what does the ApiResult apiProxy code look like?

Jun.13,2022

https://github.com/callicoder...


https://github.com/ant-design... solution:

solve the problem that after the browserHistory build is completed, put it directly under the resource/static directory of the Spring Boot project, refresh the browser in another path or directly access the method that cannot load the view.
found a very simple way to use ErrorController and modify the application.properties file:
application.properties add:

spring.mvc.view.suffix=.html

Java Code:

import org.springframework.boot.web.servlet.error.ErrorController
import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.RequestMapping

@Controller
class AntDesignController: ErrorController {
    @RequestMapping("/error")
    fun getIndex():String{
        return "index"
    }
    override fun getErrorPath(): String {
        return "/error"
    }
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e74031-4a1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e74031-4a1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?