• Phillip Webb's avatar
    Support javaagent instrumentation with loader · cd2c1896
    Phillip Webb authored
    Update spring-boot-loader to allow `-javaagent` instrumentation when
    running from executable jars.
    
    Prior to this commit the `Launcher` skipped the application classloader
    and instead used the system classloader as a parent. This was to ensure
    that locally packaged classes were always loaded by the classloader
    that had access to nested jars.  Unfortunately when using the
    `-javaagent` option, it is the application classloader that is modified.
    
    The `Launcher` class now uses the application classloader as parent
    and `LaunchedURLClassLoader` has been updated to always search local
    URLs before delegating to the parent. This is very similar to the way
    that most application servers handle the loading of war files.
    
    Issue: #56232870
    cd2c1896
Name
Last commit
Last update
buildhelper/all Loading commit data...
docs Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
README.md Loading commit data...
pom.xml Loading commit data...