如果Controller中的方法返回基本数据类型,spring mvc会怎样处理

2025-05-10 23:18:42
推荐回答(2个)
回答1:

如果返回的是int那你就用integer,把他变成引用类型啊,或者直接toString()也可以。

回答2:

说的不是 很清楚