Skip to content

Commit

Permalink
spring metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Nov 6, 2020
1 parent 4ecbce6 commit 77dc6c8
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"groups": [
{
"name": "simbot",
"type": "love.forte.simbot.core.SimbotApp",
"sourceType": "love.forte.simbot.core.SimbotApp"
},
{
"name": "simbot.core",
"type": "love.forte.simbot.core.configuration.CoreBotRegistrar",
"sourceType": "love.forte.simbot.core.configuration.CoreBotRegistrar"
},
{
"name": "simbot.core.task.pool",
"type": "love.forte.simbot.core.configuration.ExecutorServiceProperties",
"sourceType": "love.forte.simbot.core.configuration.ExecutorServiceProperties"
}
],
"properties": [
{
"name": "simbot.core.bots",
"type": "java.util.List<java.lang.String>",
"description": "注册的bot列表信息。 其格式为 xxxx:yyyy,xxxx:yyyy 。 其中,xxxx一般代表为账号信息,yyyy一般代表为权限信息,例如密码,或者上报地址。",
"sourceType": "love.forte.simbot.spring.autoconfigure.properties.SimbotCoreConfigurationProperties"
},
{
"name": "simbot.core.scan-package",
"type": "java.util.List<java.lang.String>",
"description": "可进行指定的包扫描路径。如果不指定则为启动器所在路径。",
"sourceType": "love.forte.simbot.spring.autoconfigure.properties.SimbotCoreConfigurationProperties"
},
{
"name": "simbot.core.task.pool.core-pool-size",
"type": "java.lang.Integer",
"description": "核心池的大小",
"sourceType": "love.forte.simbot.spring.autoconfigure.properties.SimbotCoreTaskPoolConfigurationProperties",
"defaultValue": 1
},
{
"name": "simbot.core.task.pool.keep-alive-time",
"type": "java.lang.Long",
"description": "表示线程没有任务执行时最多保持多久时间会终止。 默认情况下,只有当线程池中的线程数大于corePoolSize时,keepAliveTime才会起作用, 直到线程池中的线程数不大于corePoolSize,即当线程池中的线程数大于corePoolSize时, 如果一个线程空闲的时间达到keepAliveTime,则会终止,直到线程池中的线程数不超过corePoolSize。 但是如果调用了allowCoreThreadTimeOut(boolean)方法,在线程池中的线程数不大于corePoolSize时,keepAliveTime参数也会起作用, 直到线程池中的线程数为0;",
"sourceType": "love.forte.simbot.spring.autoconfigure.properties.SimbotCoreTaskPoolConfigurationProperties",
"defaultValue": 0
},
{
"name": "simbot.core.task.pool.maximum-pool-size",
"type": "java.lang.Integer",
"description": "线程池最大线程数,这个参数也是一个非常重要的参数,它表示在线程池中最多能创建多少个线程;",
"sourceType": "love.forte.simbot.spring.autoconfigure.properties.SimbotCoreTaskPoolConfigurationProperties",
"defaultValue": 4
},
{
"name": "simbot.core.task.pool.time-unit",
"type": "java.util.concurrent.TimeUnit",
"description": "keep alive time的时间类型。",
"sourceType": "love.forte.simbot.spring.autoconfigure.properties.SimbotCoreTaskPoolConfigurationProperties"
},
{
"name": "simbot.show-logo",
"type": "java.lang.Boolean",
"description": "展示simbot的logo。",
"sourceType": "love.forte.simbot.spring.autoconfigure.properties.SimbotNormalConfigurationProperties",
"defaultValue": true
},
{
"name": "simbot.show-tips",
"type": "java.lang.Boolean",
"description": "展示simbot的随机tips。",
"sourceType": "love.forte.simbot.spring.autoconfigure.properties.SimbotNormalConfigurationProperties",
"defaultValue": true
}
],
"hints": []
}
1 change: 1 addition & 0 deletions core-parent/core/src/test/resources/simbot.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@



0 comments on commit 77dc6c8

Please sign in to comment.