java - controller中的this代表什么呀?并不会创建对象啊?
天蓬老师
天蓬老师 2017-04-18 10:56:11
0
3
526

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(3)
黄舟

this represents the instance object of the current class. The current class is hosted by Spring. Spring creates the instance object of the class through the reflection mechanism, so we do not need to explicitly use the key value new to create the instance object of the class

小葫芦

Beans in spring are singletons by default, so this refers to the controller object

小葫芦

The controller class object is created and hosted by spring for you, and is a singleton by default

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!