9A6.Upgrade 3.2.100
OriginalPracticeUpgradeAbout 2 min
9A6.Upgrade 3.2.100
Upgrade manual from 3.2.100
after having upgraded to 3.0.6-300
, including,
- 3.2.101 AntiMage
- 3.2.110 ArcWarden
- 3.2.120 Bane
- 3.2.130.SS Batrider
9A6.1.AntiMage 3.2.101
version change to 3.2.101
, standard 3-segment format. This includes major upgrades of java 17 to 21 and springboot 3.0 to 3.2.
1a.SpringBoot Upgrade
NOTE, do NOT enable spring.threads.virtual.enabled
, due to not fully testing.
1b.Dependency Change
- ShardingSphere - upstream not adapted to Jakarta EE.
- ServiceComb - not fully tested in wings, RPC mode is recommended.
- kryo - remove outdated serializers, use new version defaults.
9A6.2.ArcWarden 3.2.110
- spring boot 3.2.2
- java config instead of jooq-codegen-faceless.xml
- merge awesome and autogen into the main module
- delete HttpHelper, use HttpSecurity.with
- safe table for JDBC,e.g. JournalJdbcHelper
2a.Feature Flags
Add FeatureFlag
and TweakFeature
with the following breaking changes,
wings.silencer.conditional
towings.feature
SilencerConditionalProp
toSilencerFeatureProp
WingsEnabledCondition.Prefix
toWingsEnabledContext.PrefixEnabled
2b.Dependency Change
- remove
spring-boot-properties-migrator
9A6.3.Bane 3.2.120
3a.Refactor Async,TTL
- LightTasker to FastScheduler
- HeavyTasker to ScheduledScheduler
- remove execute, referScheduler etc.
wings.slardar.async.heavy.
to.fast.
9A6.4.Batrider 3.2.130.SS
4a.MapStruct livetemplate wgme
- rename
into()
inwgmp
toto()
andof()
- affect
AuthnDetailsMapper
4b.LoginSuccessHandler State class
- change NonceLoginSuccessHandler.onResponse params list to object
4c.move IfNotXxx from EmptySugar to SetterSugar
- EmptySugar only for empty, add setIf style to pojo
4d.mirana breaking change
- remove R.NG/.OK to Immutable.NG/.OK
- R.NG()/.OK() return Immutable.NG/.OK
- Z.notNullSure for default value
- Z.notNullSafe for default supplor
4e.codestyle CONTINUATION_INDENT_SIZE
- reimport wings-idea-style.xml
- reimport wings-idea-live.xml
- reformat java code
- CONTINUATION_INDENT_SIZE from default 8 to 4
- SPACE_WITHIN_ARRAY_INITIALIZER_BRACES true
- ALIGN_MULTILINE_TERNARY_OPERATION nop
4f.jooq supportor dto
- change SelectWhereOrder from inner to normal class
4g.jackson and fastjson
- chagne LocaleZoneIdUtil.Xxx from Supplier to method
- delete FastJsonFilters, FastJsonReaders
- JacksonHelper do NOT auto timezone
- JacksonHelper config
Plain
as wings - JacksonHelper delete TypeReference
- FastjsonHelper delete enableXxx
- FastjsonHelper delete TypeReference
4h.schema change
- schema and data 2021-10-26v02-task-tune.sql
- schema 2021-10-26v03-conf-size.sql
- schema 2021-10-26v05-journal-elapse.sql
- schema 2021-10-26v06-lazy-mail.sql
- fix compile error
INT(11)
toINT
BIGINT(20)
toBIGINT
TINYINT(1)
toBOOLEAN
4i.silencer refactor
spring.help.CommonPropHelper
tosupport.PropHelper
SubclassSpringLoader
toSubclassGather
enhance.TypeSugar
tosupport.TypeSugar
4j.mail service signature
send
- save and sync single send. and return,false
, if check fail.- throw if send fail, MailRetryException if async retry.
true
, otherwise.
post
- save and sync single send, fire and forget, no exception throw. and return,-2
, if throw non MailRetryException.-1
, if check fail.0
, if send success.>now()
, estimated retry time if fail and async retry
emit
- async batch send, no exception throw. auto in batch send. and return,-2
, if throw non MailRetryException.-1
, if check fail.>now()
, estimated retry time if fail and async retry