java - Spring Data Redis: What is the difference between the two ways to obtain ZSetOperations? -
first example
@resource stringredistemplate stringredistemplate; zsetoperations<string, string> zsetops = stringredistemplate.opsforzset(); second example
@resource(name="stringredistemplate") private zsetoperations<string, string> zsetops; can explain difference between first , second , whether second 1 working first one?
Comments
Post a Comment