9A7.Upgrade 3.3.140
OriginalJanuary 17, 2025PracticeUpgradeLess than 1 minute
9A7.Upgrade 3.3.140
Upgrade manual from 3.2.130
after having upgraded to 3.2.100
, including,
- 3.3.140 Bloodseeker
9A7.1.Bloodseeker 3.3.140.SS
version change to 3.3.140
, including many breaking refactorings.
1a.SpringBoot Upgrade
1b.Mirana 2.8.0 refactor
CodeEnum
from.mirana.code
to.mirana.i18n
I18nString
renamesetI18n()
tosetI18nCache
I18nString
prefixI18n
to code/hint/argsI18nAware.toI18nStringArgs
totoI18nString(null,args)
R
refactor param and method to data first(message,code,data)
to(data,code,message)
castType
tocast
xxData
toxx(data)
xx(message)
toxxMessage
ng(Throwable)
tongError(Throwable,null)
ng(code)
tongCode(code)
ngData(data, code)
tong(data,code)
ok(message,data)
took(data,null,message)
setI18nMessage(code,args)
tosetI18nCode().setI18nArgs().cast()
setI18nMessage(code)
tosetMessageBy(code)
- delete
hasXxx
, usegetXxx
to check
AssertArgs
addname
paramAssertXxx.aXxb
rename toxxObj
orxxVal
TypedReg
andTypedKey
get(Map)
toget(Function, boolean)
getOr(Map, _)
togetOr(Function, _)
1c.TypedRef as Const
TypedRef instead of magic const key
- HazelcastConst
- SlardarServletConst
-request.setAttribute(AttrUserId, pass.getUserId());
+request.setAttribute(AttrUserId.value, pass.getUserId());
1d.I18n code refactor
- remove
DaoAssert
, useAssertCrud
instead - remove
DaoPredict
, usePredictVal
instead AuthnErrorEnum
renameFailureWaiting
toFailureWaiting1
CommonErrorEnum
suffix param count to codeRequestHelper
deleteallErrors
, useI18nAwareHelper
instead
1e.refactor/remove jackson empty
- remove
.emptyValuePropertyFilter
, JsonFilterEmptyValue
- rename JsonFilter
I18nResult
toI18nAware
- remove
.jackson.empty-list
prop, useJsonInclude
instead - remove
.jackson.empty-map
prop, useJsonInclude
instead