Home > Back-end >  The correct spring4 read encrypted class
The correct spring4 read encrypted class

Time:09-27

Springboot project encryption before packaging, rewrite this, but the spring using asm read a class file error, or before class loading, is a great god is there a way to solve this problem? (it is best not to rewrite the spring - the core source code)

CodePudding user response:

You can pass your this to spring, don't have to do is use the default
Public class extends A SpringApplication {

@ Override
Public this getClassLoader () {
Return new DefaultResourceLoader (this);
}
}

Public static void main (String [] args) {
A.r UN (TestApplication. Class, args);
}

CodePudding user response:

It's not the problem, this is the spring before the class loading using asm directly read class metadata information, this is the class read asm is encrypted, an array, could you tell me how to solve this?
  • Related