| | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.tencentcloudapi.common.exception.TencentCloudSDKException; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | } |
| | | |
| | | @PostMapping({"addBangZhu"}) |
| | | public void addBang(Bangzhu bangzhu, HttpServletResponse response) throws IOException { |
| | | public void addBang(Bangzhu bangzhu, HttpServletResponse response) throws IOException, TencentCloudSDKException { |
| | | Date date = new Date(); |
| | | SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | bangzhu.setFkdata(formatter.format(date)); |