springmvc中的service,构造函数有参数应该怎么写

2025-02-25 12:15:36
推荐回答(1个)
回答1:

你这是spring管理bean类,如果直接main方法调用的话,也需要把daonew出来,然后调用service的set方法手动注入进去