@ Resource

if neither name, nor type, is specified, it is automatically assembled in byName mode; if there is no match, it falls back to an original type for matching, and if there is a match, it is automatically assembled;

I would like to ask what the @ Resource here means by returning a primitive type
for example:

@ Resource ()
private ShiroService shiroService;

what is the original type here?

Mar.20,2021

should be the name and type, and the term "primitive type" is probably a translation problem.

Menu