package com.fjhx.controller; import com.alibaba.fastjson.JSON; import com.fjhx.entity.Message; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @Slf4j @RestController @RequestMapping("/callback") public class CallbackController { @PostMapping("/163email") public String email(@RequestBody Message message) { log.error("接收到新邮件:{}", JSON.toJSONString(message)); return "ok"; } }