@恒宇少年
public UserEntity save(@RequestParam(value = "name") String name,
@RequestParam(value = "age") int age,
@RequestParam(value = "address") String address) {
UserEntity Entity=new UserEntity();
Entity.setT_name(name);
Entity.setT_age(age);
Entity.setT_address(address);
return userJpa.save(Entity);
}
這是我改的save方法解愤,需要用RequestParam獲取參數(shù),請問不用RequestParam是怎么實現(xiàn)參數(shù)獲取的蜀撑?
第三章:SpringBoot使用SpringDataJPA完成CRUD前兩章我們簡單講解了SpringBoot的易用性属韧,SpringBoot框架內(nèi)部提供了很多我們需要用到的組件,需要什么你就可以拿到項目里。在我們平時的項目中扼劈,數(shù)據(jù)的存儲以及訪問...