spring set注入时get方法有没有用?

如题,请大神指点。spring set注入时get方法有没有用?假如不写get方法对程序有影响吗?

可以不写get方法的,你可以试试不写set方法用注解的方式也可以注入