preface
Sister: sister usually use so many commands, sister I usually what also can’t use
Elder sister: younger sister claims at ordinary times what also won’t use, OGNL uses so ripe, add delete change check everything don’t fall
OGNL command learning
OGNL is an expression that retrieves relevant values for troubleshooting
OGNL generally needs to specify a class loader. You can run the SC command to query the hash of the class loader as follows:
- For example, it is common to use OGNL to call static methods to get Spring loaded bean classes:
Ognl -c classLoaderHash -x Returns the hierarchy of attributes traversed by the value ‘OGNL expression ‘
GetBean code implementation:
- After you get the bean, you can invoke a non-static method
- Calling the constructor
- You can also assign values sequentially
- You can use this to represent the current object
reference
Commons.apache.org/proper/comm…
Jueee. Making. IO / 2020/08/20 2…
Github.com/alibaba/art…
Blog.csdn.net/u010634066/…