What the <T> means in BeanFactory.java in spring? -


this question has answer here:

i'm reading spring source code, beanfactory.java have method:

<t> t getbean(class<t> requiredtype) throws beansexception; 

the second t return type, what's first mean?

it means method has type parameter. when call object of type class<t> returns object of type t.

the first t indication t type parameter.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -