Your ROOT_URL in app.ini is http://git.zky.com/ but you are visiting http://61.178.84.89:8998/luoluo/zhky/blame/commit/922acc984068a8111d780d9251ec62057ae0e971/src/main/java/com/zky/bjca/cert/controller/TdBjcaController.java
You should set ROOT_URL correctly, otherwise the web may not work correctly.
package com.zky.bjca.cert.controller ;
import java.util.List ;
import com.zky.bjca.cert.service.ITdBjcaService ;
import com.zky.pojo.TdBjca ;
import org.springframework.beans.factory.annotation.Autowired ;
import org.springframework.stereotype.Controller ;
import org.springframework.ui.ModelMap ;
import org.springframework.web.bind.annotation.GetMapping ;
import org.springframework.web.bind.annotation.PathVariable ;
import org.springframework.web.bind.annotation.PostMapping ;
import org.springframework.web.bind.annotation.RequestMapping ;
import org.springframework.web.bind.annotation.ResponseBody ;
/ * *
* 文 件 管 理 Controller
*
* @author itzky
* @date 2023 - 12 - 22
* /
@Controller
@RequestMapping ( "/login" )
public class TdBjcaController
{
private String prefix = "login" ;
@Autowired
private ITdBjcaService tdBjcaService ;
@GetMapping ( )
public String bjca ( )
{
return prefix + "/bjca" ;
}
/ * *
* 查 询 文 件 管 理 列 表
* /
@PostMapping ( "/certid" )
@ResponseBody
public TdBjca CertById ( Long id ) {
TdBjca tdBjca = tdBjcaService . selectTdBjcaById ( id ) ;
return tdBjca ;
}
/ * *
* 新 增 文 件 管 理
* /
@GetMapping ( "/add" )
public String add ( )
{
return prefix + "/add" ;
}
/ * *
* 新 增 保 存 文 件 管 理
* /
@PostMapping ( "/login" )
@ResponseBody
public int addSave ( TdBjca tdBjca )
{
return tdBjcaService . insertTdBjca ( tdBjca ) ;
}
}