# springboot动态加载jar_卸载上传的jar_可以注册bean_卸载bean **Repository Path**: xiaoyaoxiaodekongjianzhan/java_study_springboot_run_java_source_code ## Basic Information - **Project Name**: springboot动态加载jar_卸载上传的jar_可以注册bean_卸载bean - **Description**: springboot动态加载jar_卸载上传的jar_可以注册bean_卸载bean jar中存在controller类型的控制器的时候, 会自动将这个controller注册到spring中, 并且会自动映射路径和对应的方法, 在不使用这个jar文件的时候,可以卸载jar文件, 并且从spring中去除 - **Primary Language**: Java - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-12-21 - **Last Updated**: 2024-12-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### project description *old_test : An invalid test file is not recommended* *sp33_jar : The project to package as a jar file* *sp33_run_jar_project : Upload the jar package and register it as a spring bean according to the annotations above the class. Dynamically create spring beans such as controller and service* *uploads : After uploading the jar package in the upload jar file api of project sp33_run_jar_project, you will be given a directory to save the upload jar file. In the folder there is a sp33_jar-1.jar. back file. You can remove the .back suffix from this file to get sp33_jar-1.jar. You can use this to test uploading the jar file and see the effect* ### 项目说明 *old_test 失效的测试文件, 不建议使用* *sp33_jar 是测试打jar包用的* *sp33_run_jar_project 是测试上传jar包, 并且按照类上面的注解注册为 spring bean 的项目* *uploads 是上传jar包后, 保存jar的目录, sp33_jar-1.jar.back 可以去除 .back 得到 sp33_jar-1.jar 用来测试上传*