diff --git a/applicationContext.xml b/applicationContext.xml
new file mode 100644
index 0000000..e69de29
diff --git a/src/com/ssm/controller/DataDictController.java b/src/com/ssm/controller/DataDictController.java
new file mode 100644
index 0000000..7bcea3c
--- /dev/null
+++ b/src/com/ssm/controller/DataDictController.java
@@ -0,0 +1,17 @@
+// DataDictController.java
+package com.ssm.controller;
+import com.ssm.entity.DataDict;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+@Controller
+public class DataDictController {
+ @RequestMapping("/submitDataDict")
+ public String handleDataDict(DataDict dataDict) {
+ System.out.println("新增字典项: "
+ + "键=" + dataDict.getKey()
+ + ", 值=" + dataDict.getValue()
+ + ", 类型=" + dataDict.getType());
+ return "showDataDict";
+ }
+}
diff --git a/src/com/ssm/controller/ExpenseController.java b/src/com/ssm/controller/ExpenseController.java
new file mode 100644
index 0000000..61b7488
--- /dev/null
+++ b/src/com/ssm/controller/ExpenseController.java
@@ -0,0 +1,17 @@
+// 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";
+ }
+}
\ No newline at end of file
diff --git a/src/com/ssm/controller/SecurityAccountController.java b/src/com/ssm/controller/SecurityAccountController.java
new file mode 100644
index 0000000..e020143
--- /dev/null
+++ b/src/com/ssm/controller/SecurityAccountController.java
@@ -0,0 +1,17 @@
+// SecurityAccountController.java
+package com.ssm.controller;
+import com.ssm.entity.SecurityAccount;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+@Controller
+public class SecurityAccountController {
+ @RequestMapping("/submitSecurityAccount")
+ public String handleSecurityAccount(SecurityAccount account) {
+ System.out.println("创建证券账户: "
+ + "账户ID=" + account.getAccountId()
+ + ", 持有人=" + account.getOwnerName()
+ + ", 券商=" + account.getBroker());
+ return "showSecurityAccount";
+ }
+}
\ No newline at end of file
diff --git a/src/com/ssm/controller/StockHoldingController.java b/src/com/ssm/controller/StockHoldingController.java
new file mode 100644
index 0000000..cd03c06
--- /dev/null
+++ b/src/com/ssm/controller/StockHoldingController.java
@@ -0,0 +1,17 @@
+// StockHoldingController.java
+package com.ssm.controller;
+import com.ssm.entity.StockHolding;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+@Controller
+public class StockHoldingController {
+ @RequestMapping("/submitStockHolding")
+ public String handleStockHolding(StockHolding stock) {
+ System.out.println("记录持股信息: "
+ + "股票代码=" + stock.getSymbol()
+ + ", 数量=" + stock.getQuantity()
+ + ", 买入价=" + stock.getPurchasePrice());
+ return "showStockHolding";
+ }
+}
diff --git a/src/com/ssm/entity/DataDict.java b/src/com/ssm/entity/DataDict.java
new file mode 100644
index 0000000..321c039
--- /dev/null
+++ b/src/com/ssm/entity/DataDict.java
@@ -0,0 +1,39 @@
+package com.ssm.entity;
+public class DataDict {
+ private Integer dictId;
+ private String key;
+ private String value;
+ private String type;
+
+ public Integer getDictId() {
+ return dictId;
+ }
+
+ public void setDictId(Integer dictId) {
+ this.dictId = dictId;
+ }
+
+ public String getKey() {
+ return key;
+ }
+
+ public void setKey(String key) {
+ this.key = key;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+}
diff --git a/src/com/ssm/entity/Expense.java b/src/com/ssm/entity/Expense.java
new file mode 100644
index 0000000..4decbb1
--- /dev/null
+++ b/src/com/ssm/entity/Expense.java
@@ -0,0 +1,49 @@
+package com.ssm.entity;
+import java.util.Date;
+public class Expense {
+ private Integer id;
+ private Double amount;
+ private Date date;
+ private String category;
+ private String remarks;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public Double getAmount() {
+ return amount;
+ }
+
+ public void setAmount(Double amount) {
+ this.amount = amount;
+ }
+
+ public Date getDate() {
+ return date;
+ }
+
+ public void setDate(Date date) {
+ this.date = date;
+ }
+
+ public String getCategory() {
+ return category;
+ }
+
+ public void setCategory(String category) {
+ this.category = category;
+ }
+
+ public String getRemarks() {
+ return remarks;
+ }
+
+ public void setRemarks(String remarks) {
+ this.remarks = remarks;
+ }
+}
diff --git a/src/com/ssm/entity/Income.java b/src/com/ssm/entity/Income.java
index a246762..13f9545 100644
--- a/src/com/ssm/entity/Income.java
+++ b/src/com/ssm/entity/Income.java
@@ -1,93 +1,49 @@
package com.ssm.entity;
-
-import org.springframework.format.annotation.DateTimeFormat;
-
import java.util.Date;
-
public class Income {
- private Integer id; // 编号
- private User user; // 收入用户
- private Datadic incometype; // 收入类型
- private String source; // 来源
- private Integer money; // 金额
- private String content; // 备注
- @DateTimeFormat(pattern = "yyyy-mm-dd HH:mm:ss")
- private Date incometime; // 收入时间
- @DateTimeFormat(pattern = "yyyy-mm-dd HH:mm:ss")
- private Date createtime; // 创建时间
- @DateTimeFormat(pattern = "yyyy-mm-dd HH:mm:ss")
- private Date updatetime; // 更新时间
-
- public Integer getId() {
- return id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- public String getSource() {
- return source;
- }
- public void setSource(String source) {
- this.source = source;
- }
- public Integer getMoney() {
- return money;
- }
- public void setMoney(Integer money) {
- this.money = money;
- }
- public String getContent() {
- return content;
- }
- public void setContent(String content) {
- this.content = content;
- }
- public Date getIncometime() {
- return incometime;
- }
- public void setIncometime(Date incometime) {
- this.incometime = incometime;
- }
- public Date getCreatetime() {
- return createtime;
- }
- public void setCreatetime(Date createtime) {
- this.createtime = createtime;
- }
- public Date getUpdatetime() {
- return updatetime;
- }
- public void setUpdatetime(Date updatetime) {
- this.updatetime = updatetime;
- }
-
- public User getUser() {
- return user;
- }
-
- public void setUser(User user) {
- this.user = user;
- }
-
- public Datadic getIncometype() {
- return incometype;
- }
-
- public void setIncometype(Datadic incometype) {
- this.incometype = incometype;
- }
-
- @Override
- public String toString() {
- return "Income{" +
- "id=" + id +
- // 输出收入用户名
- ", username='" + user.getUsername() + '\'' +
- // 输出收入类型
- ", incometype=" + incometype.getDatadicvalue() +
- ", source=" + source +
- ", money='" + money + '\'' +
- ", incometime='" + incometime + '\'' +
- '}';
- }
-}
+ private Integer id;
+ private Double amount;
+ private Date date;
+ private String category;
+ private String description;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public Double getAmount() {
+ return amount;
+ }
+
+ public void setAmount(Double amount) {
+ this.amount = amount;
+ }
+
+ public Date getDate() {
+ return date;
+ }
+
+ public void setDate(Date date) {
+ this.date = date;
+ }
+
+ public String getCategory() {
+ return category;
+ }
+
+ public void setCategory(String category) {
+ this.category = category;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+}
\ No newline at end of file
diff --git a/src/com/ssm/entity/SecurityAccount.java b/src/com/ssm/entity/SecurityAccount.java
new file mode 100644
index 0000000..71f1ae9
--- /dev/null
+++ b/src/com/ssm/entity/SecurityAccount.java
@@ -0,0 +1,39 @@
+package com.ssm.entity;
+public class SecurityAccount {
+ private String accountId;
+ private String ownerName;
+ private Double balance;
+ private String broker;
+
+ public String getAccountId() {
+ return accountId;
+ }
+
+ public void setAccountId(String accountId) {
+ this.accountId = accountId;
+ }
+
+ public String getOwnerName() {
+ return ownerName;
+ }
+
+ public void setOwnerName(String ownerName) {
+ this.ownerName = ownerName;
+ }
+
+ public Double getBalance() {
+ return balance;
+ }
+
+ public void setBalance(Double balance) {
+ this.balance = balance;
+ }
+
+ public String getBroker() {
+ return broker;
+ }
+
+ public void setBroker(String broker) {
+ this.broker = broker;
+ }
+}
\ No newline at end of file
diff --git a/src/com/ssm/entity/StockHolding.java b/src/com/ssm/entity/StockHolding.java
new file mode 100644
index 0000000..3598405
--- /dev/null
+++ b/src/com/ssm/entity/StockHolding.java
@@ -0,0 +1,39 @@
+package com.ssm.entity;
+public class StockHolding {
+ private String stockId;
+ private String symbol;
+ private Integer quantity;
+ private Double purchasePrice;
+
+ public String getStockId() {
+ return stockId;
+ }
+
+ public void setStockId(String stockId) {
+ this.stockId = stockId;
+ }
+
+ public String getSymbol() {
+ return symbol;
+ }
+
+ public void setSymbol(String symbol) {
+ this.symbol = symbol;
+ }
+
+ public Integer getQuantity() {
+ return quantity;
+ }
+
+ public void setQuantity(Integer quantity) {
+ this.quantity = quantity;
+ }
+
+ public Double getPurchasePrice() {
+ return purchasePrice;
+ }
+
+ public void setPurchasePrice(Double purchasePrice) {
+ this.purchasePrice = purchasePrice;
+ }
+}
diff --git a/src/springmvc.xml b/src/springmvc.xml
index e61a833..626409b 100644
--- a/src/springmvc.xml
+++ b/src/springmvc.xml
@@ -1,12 +1,28 @@