1
1
### SbpProperties
2
2
3
- Configurations for main app (not plugin) to control PluginManager behavior .
3
+ Configurations for main application's PluginManager.
4
4
5
5
##### ` spring.sbp.enabled `
6
6
set to true to enable sbp. Default false.
7
7
8
- ##### ` spring.sbp.autoStartPlugin `
8
+ ##### ` spring.sbp.auto-start-plugin `
9
9
auto start plugin when main app is ready. Default true
10
10
11
- ##### ` spring.sbp.disabledPlugins `
11
+ ##### ` spring.sbp.disabled-plugins `
12
12
Plugins disabled by default
13
13
14
- ##### ` spring.sbp.enabledPlugins `
15
- Plugins enabled by default, prior to ` disabledPlugins `
14
+ ##### ` spring.sbp.enabled-plugins `
15
+ Plugins enabled by default, prior to ` disabled-plugins `
16
16
17
- ##### ` spring.sbp.profiles ` :
18
- Specify Spring profiles to be used to create plugins' ` ApplicationContext ` .
19
-
20
- ##### ` spring.sbp.classesDirectories `
17
+ ##### ` spring.sbp.classes-directories `
21
18
where to load plugin classes, relative to plugin folder.
22
19
* for IDEA
23
20
```
@@ -27,19 +24,29 @@ where to load plugin classes, relative to plugin folder.
27
24
- "out/production/classes"
28
25
- "out/production/resources"
29
26
```
30
- ##### ` spring.sbp.libDirectories `
27
+ ##### ` spring.sbp.lib-directories `
31
28
where to load jar libs, relative to plugin folder.
32
29
33
- ##### ` spring.sbp.runtimeMode `
30
+ ##### ` spring.sbp.runtime-mode `
34
31
with two options
35
32
* DEPLOYMENT: load plugin in jar/zip format.
36
33
* DEVELOPMENT: load plugin from build folder with Java class file.
37
34
38
- ##### ` spring.sbp.pluginsRoot `
35
+ ##### ` spring.sbp.plugins-root `
39
36
plugins home folder, relative to project working DIR.
40
37
Default ` plusins `
41
38
42
- ##### ` spring.sbp.systemVersion `
39
+ ##### ` spring.sbp.plugin-profiles ` :
40
+ Specify Spring profiles to be used when creating plugins' ` ApplicationContext ` environment. With profile ` plugin ` by default.
41
+ You could use it to config plugin globally.
42
+ Check [ Demo] ( ../demo-app/src/main/resources/application.yml ) for example.
43
+
44
+ ##### ` spring.sbp.plugin-properties `
45
+ Specify properties to be used when creating plugins' ` ApplicationContext ` environment.
46
+ You could use it to config plugin globally.
47
+ Check [ Demo] ( ../demo-app/src/main/resources/application.yml ) for example.
48
+
49
+ ##### ` spring.sbp.system-version `
43
50
The system version used for comparisons to the plugin requires attribute.
44
51
45
52
##### ` spring.sbp.controller.base-path `
@@ -50,14 +57,9 @@ Check [Demo](../demo-app/src/main/resources/application.yml) for example.
50
57
51
58
### SbpPluginProperties
52
59
53
- Configurations to control how plugins are loaded by PluginManager.
54
-
55
- ##### ` sbp-plugin.properties `
56
- properties define under this property will be passed to
57
- plugin ` ApplicationContext ` environment. You could use it to passed global plugin
58
- properties. Check [ Demo] ( ../demo-app/src/main/resources/application.yml ) for example.
60
+ Configurations for individual plugins.
59
61
60
- ##### ` sbp-plugin.pluginFirstClasses `
62
+ ##### ` sbp-plugin.plugin-first-classes `
61
63
If a class file existed in app classpath and
62
64
plugin classpath at the same time, ` PluginClassLoader ` will try to load it
63
65
from plugin classpath first. This will cause ` ClassCastException ` when classes from
@@ -66,8 +68,8 @@ plugin classpath first to make sure classes come from same classloader.
66
68
e.g. Spring Boot AutoConfiguration used in plugin only. See
67
69
[ JPA example] ( ../plugins/demo-plugin-library/src/main/resources/application.yml ) .
68
70
69
- ##### ` sbp-plugin.pluginOnlyResources `
70
- If a resources file (including resource) existed
71
+ ##### ` sbp-plugin.plugin-only-resources `
72
+ If a resource file (including resource) existed
71
73
in app classpath and plugin classpath at the same time, ` PluginClassLoader ` scan all of
72
74
them out when performing ` ClassLoader.loadResources() ` . This will potentially cause
73
75
unexpected errors, e.g. loading wrong configuration file from the wrong place. Use this
0 commit comments