René's URL Explorer Experiment


Title: bestJavaer/java-basic/java-reflect.md at master · NUVEER/bestJavaer · GitHub

Open Graph Title: bestJavaer/java-basic/java-reflect.md at master · NUVEER/bestJavaer

X Title: bestJavaer/java-basic/java-reflect.md at master · NUVEER/bestJavaer

Description: 这是一个成为更好的Java程序员的系列教程. Contribute to NUVEER/bestJavaer development by creating an account on GitHub.

Open Graph Description: 这是一个成为更好的Java程序员的系列教程. Contribute to NUVEER/bestJavaer development by creating an account on GitHub.

X Description: 这是一个成为更好的Java程序员的系列教程. Contribute to NUVEER/bestJavaer development by creating an account on GitHub.

Opengraph URL: https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/blob/*name(/*path)
route-controllerblob
route-actionshow
fetch-noncev2:aef77852-346c-b397-4fa3-aa27a8a92c99
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idC7B2:293016:894044:B1AB1B:6B050E25
html-safe-noncecb0a5154bce4b92390cba6e18526afd4666c7178e9f76acfaabda24960583e95
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0IyOjI5MzAxNjo4OTQwNDQ6QjFBQjFCOjZCMDUwRTI1IiwidmlzaXRvcl9pZCI6IjM3MzYyMDQ2NzExOTk4MDkwNjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca4ddcb422e4f1111e3f05eebc33363ab6c32b0de778d01680eb4fb0c8dcd8044
hovercard-subject-tagrepository:787979215
github-keyboard-shortcutsrepository,source-code,file-tree,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///blob/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md
twitter:imagehttps://opengraph.githubassets.com/85de90c35444b4c503bd1a9c92d7bf0a42f246bcd6655049b84e45562813ef90/NUVEER/bestJavaer
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/85de90c35444b4c503bd1a9c92d7bf0a42f246bcd6655049b84e45562813ef90/NUVEER/bestJavaer
og:image:alt这是一个成为更好的Java程序员的系列教程. Contribute to NUVEER/bestJavaer development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b
turbo-cache-controlno-cache
go-importgithub.com/NUVEER/bestJavaer git https://github.com/NUVEER/bestJavaer.git
octolytics-dimension-user_id12027364
octolytics-dimension-user_loginNUVEER
octolytics-dimension-repository_id787979215
octolytics-dimension-repository_nwoNUVEER/bestJavaer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id269198820
octolytics-dimension-repository_parent_nwocrisxuan/bestJavaer
octolytics-dimension-repository_network_root_id269198820
octolytics-dimension-repository_network_root_nwocrisxuan/bestJavaer
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release220e980097d94ce616d5d11fbd5316d208e3fc93
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNUVEER%2FbestJavaer%2Fblob%2Fmaster%2Fjava-basic%2Fjava-reflect.md
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNUVEER%2FbestJavaer%2Fblob%2Fmaster%2Fjava-basic%2Fjava-reflect.md
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fblob%2Fshow&source=header-repo&source_repo=NUVEER%2FbestJavaer
Reloadhttps://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md
Reloadhttps://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md
Reloadhttps://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md
NUVEERhttps://github.com/NUVEER
bestJavaerhttps://github.com/NUVEER/bestJavaer
Codehttps://github.com/NUVEER/bestJavaer
Pull requestshttps://github.com/NUVEER/bestJavaer/pulls
Actionshttps://github.com/NUVEER/bestJavaer/actions
Projectshttps://github.com/NUVEER/bestJavaer/projects
Security and qualityhttps://github.com/NUVEER/bestJavaer/security
Insightshttps://github.com/NUVEER/bestJavaer/pulse
https://github.com/NUVEER/bestJavaer
bestJavaerhttps://github.com/NUVEER/bestJavaer/tree/master
java-basichttps://github.com/NUVEER/bestJavaer/tree/master/java-basic
Historyhttps://github.com/NUVEER/bestJavaer/commits/master/java-basic/java-reflect.md
https://github.com/NUVEER/bestJavaer/commits/master/java-basic/java-reflect.md
bestJavaerhttps://github.com/NUVEER/bestJavaer/tree/master
java-basichttps://github.com/NUVEER/bestJavaer/tree/master/java-basic
Rawhttps://github.com/NUVEER/bestJavaer/raw/refs/heads/master/java-basic/java-reflect.md
https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#java基础-反射篇
Java基础 反射篇https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#java%E5%9F%BA%E7%A1%80-%E5%8F%8D%E5%B0%84%E7%AF%87
反射的思想及作用https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#%E5%8F%8D%E5%B0%84%E7%9A%84%E6%80%9D%E6%83%B3%E5%8F%8A%E4%BD%9C%E7%94%A8
反射的基本使用https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#%E5%8F%8D%E5%B0%84%E7%9A%84%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8
获取类的 Class 对象https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#%E8%8E%B7%E5%8F%96%E7%B1%BB%E7%9A%84-class-%E5%AF%B9%E8%B1%A1
构造类的实例化对象https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#%E6%9E%84%E9%80%A0%E7%B1%BB%E7%9A%84%E5%AE%9E%E4%BE%8B%E5%8C%96%E5%AF%B9%E8%B1%A1
获取一个类的所有信息https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#%E8%8E%B7%E5%8F%96%E4%B8%80%E4%B8%AA%E7%B1%BB%E7%9A%84%E6%89%80%E6%9C%89%E4%BF%A1%E6%81%AF
获取类中的变量(Field)https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#%E8%8E%B7%E5%8F%96%E7%B1%BB%E4%B8%AD%E7%9A%84%E5%8F%98%E9%87%8Ffield
获取类中的方法(Method)https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#%E8%8E%B7%E5%8F%96%E7%B1%BB%E4%B8%AD%E7%9A%84%E6%96%B9%E6%B3%95method
获取类的构造器(Constructor)https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#%E8%8E%B7%E5%8F%96%E7%B1%BB%E7%9A%84%E6%9E%84%E9%80%A0%E5%99%A8constructor
获取注解https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#%E8%8E%B7%E5%8F%96%E6%B3%A8%E8%A7%A3
通过反射调用方法https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#%E9%80%9A%E8%BF%87%E5%8F%8D%E5%B0%84%E8%B0%83%E7%94%A8%E6%96%B9%E6%B3%95
反射的应用场景https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#%E5%8F%8D%E5%B0%84%E7%9A%84%E5%BA%94%E7%94%A8%E5%9C%BA%E6%99%AF
Spring 的 IOC 容器https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#spring-%E7%9A%84-ioc-%E5%AE%B9%E5%99%A8
反射 + 抽象工厂模式https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#%E5%8F%8D%E5%B0%84--%E6%8A%BD%E8%B1%A1%E5%B7%A5%E5%8E%82%E6%A8%A1%E5%BC%8F
JDBC 加载数据库驱动类https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#jdbc-%E5%8A%A0%E8%BD%BD%E6%95%B0%E6%8D%AE%E5%BA%93%E9%A9%B1%E5%8A%A8%E7%B1%BB
反射的优势及缺陷https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#%E5%8F%8D%E5%B0%84%E7%9A%84%E4%BC%98%E5%8A%BF%E5%8F%8A%E7%BC%BA%E9%99%B7
增加程序的灵活性https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#%E5%A2%9E%E5%8A%A0%E7%A8%8B%E5%BA%8F%E7%9A%84%E7%81%B5%E6%B4%BB%E6%80%A7
破坏类的封装性https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#%E7%A0%B4%E5%9D%8F%E7%B1%BB%E7%9A%84%E5%B0%81%E8%A3%85%E6%80%A7
性能损耗https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#%E6%80%A7%E8%83%BD%E6%8D%9F%E8%80%97
反射基础篇文末总结https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#%E5%8F%8D%E5%B0%84%E5%9F%BA%E7%A1%80%E7%AF%87%E6%96%87%E6%9C%AB%E6%80%BB%E7%BB%93
https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#反射的思想及作用
https://camo.githubusercontent.com/06769e8844e9af7d5483b4d643e9a787d797276b41539cef87d0eb567fbc0b3a/68747470733a2f2f63646e2e6e6c61726b2e636f6d2f79757175652f302f323032302f706e672f313639343032392f313539363532393731383731382d39303331353665662d326532322d343238652d393434392d6162323663656433623566382e706e67
https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#反射的基本使用
https://camo.githubusercontent.com/323c3309775cd0f49c45691326b0f6c327982251f6884980f477843c36e35f1f/68747470733a2f2f63646e2e6e6c61726b2e636f6d2f79757175652f302f323032302f706e672f313639343032392f313539363535353832333631312d30663832643537612d643262312d343435372d613130662d6233366531303163306238652e706e67
https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#获取类的-class-对象
https://camo.githubusercontent.com/549f81906dfdc750ae73fd1700cea3f113e4bb4741e4496e8e026c816f02462c/68747470733a2f2f63646e2e6e6c61726b2e636f6d2f79757175652f302f323032302f706e672f313639343032392f313539363533343738393031382d38373039353862612d393131662d343561332d623462372d6637336666393332353166642e706e67
https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#构造类的实例化对象
https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#获取一个类的所有信息
https://camo.githubusercontent.com/aeed20bda3298a39fb364fca36586f681039ff0d9bc4d897376668746720077f/68747470733a2f2f63646e2e6e6c61726b2e636f6d2f79757175652f302f323032302f706e672f313639343032392f313539373331333630373635392d32646634663836352d336263382d346462642d386466632d6636656166653334353139642e706e67
https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#获取类中的变量field
https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#获取类中的方法method
https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#获取类的构造器constructor
https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#获取注解
https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#通过反射调用方法
https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#反射的应用场景
https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#spring-的-ioc-容器
https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#反射--抽象工厂模式
https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#jdbc-加载数据库驱动类
https://camo.githubusercontent.com/5bfb9f0c5f154557bc2805aadea9a9feb216da490b4433787b30b435e21610ff/68747470733a2f2f63646e2e6e6c61726b2e636f6d2f79757175652f302f323032302f706e672f313639343032392f313539373333323430363136382d35313033663333642d373966352d343536622d393936322d3066373739626162353137342e706e67
https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#反射的优势及缺陷
https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#增加程序的灵活性
https://camo.githubusercontent.com/d1e7a6050bff377068a10070f226010d9ebf63891a5d6de35f5b0c3ec5f537cd/68747470733a2f2f63646e2e6e6c61726b2e636f6d2f79757175652f302f323032302f706e672f313639343032392f313539363638393131393539322d39386165303666642d633539652d343739342d383133302d6666306264666530663535302e706e67
https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#破坏类的封装性
https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#性能损耗
https://github.com/NUVEER/bestJavaer/blob/master/java-basic/java-reflect.md#反射基础篇文末总结
https://camo.githubusercontent.com/64d47cab7320552526c1e21a3ca1138c2c6b231cbf63173ff1e31c982b37b734/68747470733a2f2f747661312e73696e61696d672e636e2f6c617267652f3030386933736b4e6c7931677369766b62637a786f6a33316c32307438616c352e6a7067
https://camo.githubusercontent.com/d15ead80e46ed776dd253e5c3a5914e7fa7332043f7d7dbfc2c4906ed1c9975b/68747470733a2f2f747661312e73696e61696d672e636e2f6c617267652f3030386933736b4e6c7931677369766c346b687a396a333164363068386d7a652e6a7067
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.