You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
579 B

// ExpenseController.java
package com.ssm.controller;
import com.ssm.entity.Expense;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class ExpenseController {
@RequestMapping("/submitExpense")
public String handleExpense(Expense expense) {
System.out.println("收到支出信息: "
+ "金额=" + expense.getAmount()
+ ", 类别=" + expense.getCategory()
+ ", 备注=" + expense.getRemarks());
return "showExpense";
}
}