All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ee-spring-boot.2.4.0.source-code.bee.properties Maven / Gradle / Ivy

The newest version!

#since V1.11
#1.base main and Override with active, 2.rebase to active(other file)
#1 : main file + other file; 2 : just active file(other file);    if do not set , will use mail file.
#bee.profiles.type=0
#\u547d\u540d\u89c4\u5219 name rule: bee-{active}.properties
#bee.profiles.active = test

#no dataSource 
# if use dataSource,no need config in here.
#\u65e0\u6570\u636e\u6e90,\u76f4\u8fde\u65b9\u5f0f.
#\u4f7f\u7528xml\u914d\u7f6e\u7b49\u5176\u5b83\u6570\u636e\u6e90\u65f6\uff0cbee.properties\u91cc\u914d\u7f6e\u7684\u9a71\u52a8\u4fe1\u606f\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u5c06\u4e0d\u4f1a\u4f7f\u7528\u3002
#\u6ca1\u6709\u4f7f\u7528\u6570\u636e\u6e90\u65f6\uff0c\u4f1a\u4f7f\u7528\u8fd9\u91cc\u7684\u914d\u7f6e\u3002
##bee.databaseName   old key name
##When only one type of database is used, setting it can improve efficiency
#bee.db.dbName=MySQL
#bee.db.driverName = com.mysql.jdbc.Driver
#bee.db.url =jdbc:mysql://localhost:3306/{databaseName-eg:bee}?characterEncoding=UTF-8
#bee.db.username = userName
#bee.db.password = YourPassword

#since 2.1.10, value is:MySQL,Oracle. MySQL is default.
#bee.db.oceanbaseMode=MySQL
#bee.db.dbName=OceanBase

#since V1.11
#some db neee set,like cassandra's keyspace can set here
#bee.db.schemaName=store

#bee.db.jndiType=false
#bee.db.jndiName=jndi/Bee
#bee.db.pagingWithLimitOffset=false

##Android
#bee.db.isAndroid=false
#bee.db.androidDbName=bee.db
#bee.db.androidDbVersion=1

##HarmonyOS
#bee.db.isHarmony=false
#bee.db.harmonyDbName=bee.db
#bee.db.harmonyDbVersion=1
#bee.db.harmonyDbReadonly=false

# since v1.8
#log4j>slf4j>log4j2>androidLog>harmonyLog>systemLogger>fileLogger>noLogging>jdkLog>commonsLog
bee.osql.loggerType=systemLogger
#set log type for systemLoggerType(for develop):debugtable name, formatter: packagename.ClassName:tableName,packagename.ClassName:tableName
#Separate multiple options with comma. Package name can be omitted if they are not confused. 
#Just config for special 
#bee.osql.naming.entity2tableMappingList=User2:test_user,com.abc.user.User:test_user

#since 1.7.2
#default implement translate type. 1 : order_no<-->orderNo(DB<-->Java), 2: ORDER_NO<-->orderNo(DB<-->Java), 
# 3: original,  4 : DbUpperAndJavaLower(since 1.17), ORDER_NO<-->order_no(DB<-->Java)
#if want to use other naming rule, you can define a new class implements NameTranslate
#default value is :1
bee.osql.naming.translateType=1
#since 1.17 \u540c\u65f6\u4f7f\u7528\u591a\u7528\u4e0d\u540c\u547d\u540d\u8f6c\u6362
bee.osql.naming.useMoreTranslateType=false

#\u8981\u662f\u5b57\u6bb5\u540d\u5168\u7528\u5927\u5199,\u5728\u547d\u540d\u8f6c\u6362\u524d\u9700\u8981\u5148\u8f6c\u6210\u5c0f\u5199,\u5982ORDER_NO
#default: to LowerCase before. \u9ed8\u8ba4\u662f\u5148\u8f6c\u5c0f\u5199,\u56e0\u4e3a\u5982\u4e0d\u8f6c,DB\u5b57\u6bb5\u7528\u5168\u5927\u5199\u65f6\u4f1a\u51fa\u9519
#\u4f46\u50cfmysql,\u9ed8\u8ba4\u4e0d\u662f\u5168\u5927\u5199\u7684,\u5efa\u8bae\u8bbe\u4e3afalse,\u8fd9\u6837\u8f6c\u6362\u4f1a\u66f4\u7cbe\u51c6.
bee.osql.naming.toLowerCaseBefore=true


#bee.osql.moreTable.columnListWithStar=false
# since v1.7.0
#inner join type. use "join .. on" when true, or use "where ...=".Just there is one sub table, it is enable.
#bee.osql.sqlGenerate.moreTableSelect.2tablesWithJoinOnStyle=true   #close in v1.9
#bee.osql.moreTable.twoTablesWithJoinOnStyle=false

#\u67e5\u8be2\u7ed3\u679c\u76f4\u63a5\u8fd4\u56deJson\u662f\u5426\u5ffd\u7565null
bee.osql.selectJson.ignoreNull=true
#\u67e5\u8be2\u7ed3\u679c\u76f4\u63a5\u8fd4\u56deJson\u4e2d, timestamp\u662f\u5426\u7528\u6beb\u79d2\u8868\u793a
bee.osql.selectJson.timestampWithMillisecond=false
bee.osql.selectJson.dateWithMillisecond=false
bee.osql.selectJson.timeWithMillisecond=false
#since 1.9.8
bee.osql.selectJson.longToString=true

#\u67e5\u8be2\u7ed3\u679c\u8fd4\u56deList\u65f6,\u662f\u5426\u5c06null\u8f6c\u4e3a""
bee.osql.returnStringList.nullToEmptyString=false


#cache=======================start
#\u7f13\u5b58\u7c7b\u578b
#bee.osql.cache.type=FIFO
#\u7f13\u5b58\u96c6\u6570\u636e\u91cf\u6570\u76ee
#bee.osql.cache.mapSize=20000
#resultset\u8d85\u8fc7\u4e00\u5b9a\u7684\u503c\u5c06\u4e0d\u4f1a\u653e\u7f13\u5b58
#bee.osql.cache.workResultSetSize=300
#\u7f13\u5b58\u4fdd\u5b58\u65f6\u95f4(\u6beb\u79d2 ms)
#bee.osql.cache.timeout=30000
#\u68c0\u6d4b\u5230\u8d85\u65f6,\u8d85\u8fc7\u8fd9\u4e2a\u4f7f\u7528\u6bd4\u4f8b\u5219\u987a\u4fbf\u8d77\u7ebf\u7a0b\u6e05\u9664\u7f13\u5b58
bee.osql.cache.startDeleteRate=0.6
#\u7f13\u5b58\u5bb9\u91cf\u4f7f\u7528\u7387;\u6dfb\u52a0\u7f13\u5b58,\u68c0\u6d4b\u8fbe\u5230\u8be5\u4f7f\u7528\u7387\u5219\u6e05\u9664\u4e00\u5b9a\u6bd4\u4f8b\u7f13\u5b58
bee.osql.cache.fullUsedRate=0.8
#\u6dfb\u52a0\u7f13\u5b58,\u68c0\u6d4b\u5230\u7f13\u5b58\u5bb9\u91cf\u5feb\u6ee1\u65f6,\u5220\u9664\u7f13\u5b58\u6570\u7684\u6bd4\u4f8b
bee.osql.cache.fullClearRate=0.2

#\u4ec5\u5206\u5e93\u65f6(bee.dosql.multiDS.type=2),\u53ef\u7528\u683c\u5f0f:  dsName.tableName
#use table name, not entity name
#\u4e0d\u7f13\u5b58\u8868\u7684\u5217\u8868, \u8868\u540d\u4e0d\u533a\u5206\u5927\u5c0f\u5199.\u89c6\u56fe\u5f3a\u70c8\u5efa\u8bae\u4e0d\u653e\u7f13\u5b58,\u56e0\u4f1a\u4ea7\u751f\u810f\u6570\u636e.
#bee.osql.cache.never=test_user
#\u6c38\u4e45\u7f13\u5b58\u8868\u7684\u5217\u8868, \u8868\u540d\u4e0d\u533a\u5206\u5927\u5c0f\u5199
#bee.osql.cache.forever=constant
#\u53ea\u6709\u66f4\u6539\u65f6\u624d\u4f1a\u6e05\u9664\u7f13\u5b58,\u4ee5\u4fbf\u540c\u6b65\u65b0\u7684\u503c\u5230\u7f13\u5b58. \u8868\u540d\u4e0d\u533a\u5206\u5927\u5c0f\u5199
#bee.osql.cache.modifySyn=para

# since v1.7.2. default value is: false (use cache)
#bee.osql.cache.nocache=false

#since v1.8.99
bee.osql.cache.keyUseMD5=true

#since V1.11
#prototype: 0 not prototype, but faster; 1:prototype,if have NotSerializableException, do not put in cache, slower, but safer; 2 : prototype, but if have NotSerializableException,return original  
#high safe cache,the javabean(entity) need implements Serializable interface.
bee.osql.cache.prototype=1
bee.osql.cache.useLevelTwo=false
#\u6c38\u4e45\u548c\u957f\u4e45\u7f13\u5b58\u9ed8\u8ba4\u4e0d\u653e\u4e8c\u7ea7\u7f13\u5b58,\u5176\u5b83\u4e00\u7ea7\u7f13\u5b58\u53ef\u901a\u8fc7\u8be5\u914d\u7f6e\u8bbe\u7f6e
bee.osql.cache.levelOneTolevelTwo=false
#\u4e8c\u7ea7\u7f13\u5b58\u9ed8\u8ba4\u4fdd\u5b58\u65f6\u95f4(\u79d2 second)
#bee.osql.cache.levelTwoTimeout=180

#\u7528\u8fd9\u79cd,\u4e00\u4e2a\u5b9e\u4f53\u5bf9\u5e94\u591a\u4e2a\u4e0d\u540c\u6570\u636e\u6e90\u5219\u4e0d\u884c?  \u4e5f\u53ef\u4ee5\u8868\u793a\u51e0\u4e2a\u6570\u636e\u6e90\u5bf9\u5e94\u7684\u8868\u90fd\u653e\u7f13\u5b58
#bee.osql.cache.levelTwoEntityList=com.xxx.aa.Orders,com.xxx.bb.*,com.xxx.cc.**

#level 2 cache: Redis
#bee.osql.cacheRedis.host=localhost
#bee.osql.cacheRedis.port=
#bee.osql.cacheRedis.password=123456
#unit:  second
#bee.osql.cacheRedis.connectionTimeout=6
#Read timed out,  unit:second
#bee.osql.cacheRedis.soTimeout=6
#bee.osql.cacheRedis.database=
#bee.osql.cacheRedis.clientName=
#bee.osql.cacheRedis.ssl=
#2.1.7 eg:randTimeoutRate=0.2, bee.osql.cache.levelTwoTimeout=100  -> new timeOut is [80,120]
bee.osql.cache.randTimeoutRate=0.2
bee.osql.cache.randTimeoutAutoRefresh=false

#cache=======================end


#distributed environment
#1:SerialUniqueId  ,2:OneTimeSnowflakeId  ,3:PearFlowerId. default is 1.
#bee.distribution.genid.generatorType=1
#bee.distribution.genid.workerid=0
#bee.distribution.genid.startYear=
#bee.distribution.genid.forAllTableLongId=false
bee.distribution.genid.replaceOldId=true
#when forAllTableLongId=true, it woulb be disable.
#bee.distribution.genid.includesEntityList=com.xxx.aa.Orders,com.xxx.bb.*,com.xxx.cc.**
#bee.distribution.genid.excludesEntityList=com.xxx.aa.User,com.xxx.bb.*

#tolerateSecond need >=1
#bee.distribution.pearFlowerId.tolerateSecond=10
#bee.distribution.pearFlowerId.useHalfWorkId=false
#unit is second. 
#bee.distribution.pearFlowerId.switchWorkIdTimeThreshold=120
#need >=1, default is 2. \u68a8\u82b1\u7b97\u6cd5\u968f\u673a\u5f00\u59cb\u503c\u7684\u6700\u5927\u503c(\u4e0d\u5305\u62ec\u8fb9\u754c)
#bee.distribution.pearFlowerId.randomNumBound=2

#--------Notice: do not support define sql in this model.
#DOSQL:  Distributed Object SQL
#bee.dosql.multiDS.enable=true
#\u652f\u6301\u540c\u65f6\u4f7f\u7528\u591a\u79cd\u7c7b\u578b\u6570\u636e\u5e93\u7684\u6570\u636e\u6e90.support different type database muli-Ds at same time.
#eg: have oracle,mysql,..., datasource
#bee.dosql.multiDS.differentDbType=true
#\u7528\u4e8e\u5728HoneyFactory\u83b7\u53d6Suid,SuidRich\u7684\u5bf9\u8c61\u65f6\u751f\u6210Mongodb\u7684
bee.dosql.multiDS.justMongodb=false
#bee.dosql.multiDS.defalutDS=ds1
#bee.dosql.multiDS.sharding=false

#\u4e0d\u662f\u5e7f\u64ad\u8868,\u624d\u6709\u6548(V2.1)  for not Broadcast table(V2.1)
bee.dosql.sharding.forkJoinBatchInsert=false
bee.dosql.sharding.jdbcStreamSelect=true
#since 2.0  \u8bbe\u7f6e\u662f\u5426\u4e0d\u652f\u6301union?  include union,union all
bee.dosql.sharding.notSupportUnionQuery=false
#since 2.1.7
#bee.dosql.sharding.executorSize=0

# 1:only r/w, one main and more sub-database;  2:only more database (table name is same)
#bee.dosql.multiDS.type=1
#bee.dosql.multiDS.defalutDS=ds1
#when type is 1
#write DB just set one db.
#bee.dosql.multiDS.writeDB=ds1
#bee.dosql.multiDS.readDB=ds2,ds3
#poll:1, rand:2
#bee.dosql.multiDS.rDbRouteWay=1

#when type is 2
#bee.dosql.multiDS.defalutDS=ds1
#bee.dosql.multiDS.type=2
#\u4e0d\u540cds\u7528\u5206\u53f7\u9694\u5f00    \u540c\u4e00ds\u7528\u9017\u53f7\u9694\u5f00.Different DS are separated by semicolons and the same DS by commas.
#\u4ec5\u5206\u5e93\u65f6\uff0c\u4e0d\u540c\u5e93\u6709\u76f8\u540c\u7684\u8868\u540d\uff0c\u5bf9\u5e94\u7684Entity\u6240\u5728\u7684\u5305\u540d\u4e0d\u80fd\u76f8\u540c(\u82e5\u5728java\u4ee3\u7801\u4e2d\u624b\u52a8\u6307\u5b9ads,\u5219\u4f1a\u6c61\u67d3\u4ee3\u7801)
#bee.dosql.multiDS.matchEntityClassPath=ds2:com.xxx.aa.User,com.xxx.bb.*,com.xxx.cc.**;ds3:com.xxx.dd.User
#config datasource and table relation
#bee.dosql.multiDS.matchTable=ds2:test_user

#\u82e5\u6ca1\u6709\u914d\u7f6ebee.dosql.multiDS.type,\u5219\u6839\u636e\u5177\u4f53\u60c5\u51b5\u786e\u5b9a\u6570\u636e\u6e90



#############Bee+Spring boot,\u4f7f\u7528\u591a\u4e2a\u6570\u636e\u6e90\u65f6,\u9700\u8981\u5728spring boot\u5de5\u7a0b\u7684Application\u7c7b\u6dfb\u52a0:
#@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
#\u6216\u8005,\u5728application.properties\u91cc\u6dfb\u52a0:
#spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration

#bee.db.dbs[i].type   value :Hikari,Druid,c3p0,dbcp2,Tomcat,BeeMongo, default is : Hikari
#Hikari
#Hikari\u4e13\u7528:
#bee.db.dbs[0].driverClassName = com.mysql.jdbc.Driver
#bee.db.dbs[0].jdbcUrl =jdbc:mysql://localhost:3306/bee?characterEncoding=UTF-8&useSSL=false
#Bee\u4f5c\u4e86\u517c\u5bb9\u5904\u7406  driverName->driverClassName ;  url ->jdbcUrl

#############Bee+Spring boot,\u4f7f\u7528\u591a\u4e2a\u6570\u636e\u6e90,\u914d\u7f6e\u5b9e\u4f8b
#dbs\u6570\u7ec4,\u5176\u5b83\u4e0b\u6807,\u662f\u5426\u4ece\u9996\u4e2a\u5143\u7d20\u7ee7\u627f\u5c5e\u6027(\u4f46dsName\u4e0d\u80fd\u7ee7\u627f)
#bee.db.extendFirst=true
#
#bee.db.dbs[0].dsName=ds0
#bee.db.dbs[0].driverClassName = com.mysql.jdbc.Driver
#bee.db.dbs[0].jdbcUrl =jdbc:mysql://localhost:3306/bee?characterEncoding=UTF-8&useSSL=false
#bee.db.dbs[0].username = root
#bee.db.dbs[0].password =123456
#
#bee.db.dbs[1].dsName=ds1
#bee.db.dbs[1].driver-class-name = com.mysql.jdbc.Driver
#bee.db.dbs[1].jdbcUrl =jdbc:mysql://localhost:3306/pro?characterEncoding=UTF-8&useSSL=false
#bee.db.dbs[1].username = root
#bee.db.dbs[1].password =123456


############# Bee+Spring boot,\u4f7f\u7528\u5355\u4e2a\u6570\u636e\u6e90,\u914d\u7f6e\u5b9e\u4f8b
## \u6570\u636e\u6e90\u914d\u7f6e  ; \u9ed8\u8ba4\u662f:HikariPool
#spring.datasource.url=jdbc:mysql://localhost:3306/bee?characterEncoding=UTF-8&useSSL=false
##spring.datasource.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.driverClassName=com.mysql.jdbc.Driver
#spring.datasource.username=root
#spring.datasource.password=123456

#Sharding\u5206\u7247properties\u98ce\u683c\u914d\u7f6e(\u4e0espringboot\u6574\u5408\u65f6,\u53ef\u4ee5\u4f7f\u7528yaml\u65b9\u5f0f),since 2.4.0
#Java\u98ce\u683c\u914d\u7f6e,\u53ef\u53c2\u8003bee-exam\u5de5\u7a0b\u7684ShardingInitData.java
#ShardingConfig.addShardingBean("orders",new ShardingBean("ds[0..1].orders[0..5]", "orderid"));
#bee.db.sharding[0].baseTableName=orders
#\u8bbe\u7f6e\u8868\u5bf9\u5e94\u7684Class\u7c7b\u4e5f\u53ef\u4ee5(\u8981\u5305\u62ec\u5305\u540d)
#bee.db.sharding[0].className=org.teasoft.exam.Orders
#bee.db.sharding[0].fullNodes=ds[0..1].orders[0..5]
#\u7528\u4e8e\u5206\u7247\u7684\u8868\u5b57\u6bb5.
#bee.db.sharding[0].tabField=orderid

##\u5176\u5b83\u53ef\u8bbe\u7f6e\u5b57\u6bb5  
#bee.db.sharding[0].dsField         =
#bee.db.sharding[0].dsAlgorithm     =
#bee.db.sharding[0].tabAssignType   =
#bee.db.sharding[0].tabAlgorithm    =
#bee.db.sharding[0].dsRule          =
#bee.db.sharding[0].dsName          =
#bee.db.sharding[0].tabRule         =
#bee.db.sharding[0].dsShardingValue =
#bee.db.sharding[0].tabShardingValue=




© 2015 - 2024 Weber Informatics LLC | Privacy Policy