mirror of
https://github.moeyy.xyz/https://github.com/GeWuYou/forgeboot
synced 2025-10-28 06:48:53 +08:00
- Added exception-i18n module to handle international exceptions - Reconstruct the original exception module and change it to exception-i18n - Added WebMvcExceptionAutoConfiguration class to realize automatic configuration of international exceptions - Added GlobalException and InternalException classes for global exception handling - Added GlobalExceptionHandler class to realize international global exception handling - Update the project structure and add necessary dependencies and configurations
19 lines
602 B
Plaintext
19 lines
602 B
Plaintext
plugins{
|
|
alias(libs.plugins.forgeboot.i18n.keygen)
|
|
alias(libs.plugins.kotlin.plugin.spring)
|
|
}
|
|
dependencies {
|
|
implementation(project(Modules.Core.EXTENSION))
|
|
api(project(Modules.I18n.STARTER))
|
|
api(project(Modules.TRACE.STARTER))
|
|
implementation(project(Modules.Webmvc.DTO))
|
|
compileOnly(libs.springBootStarter.validation)
|
|
compileOnly(libs.springBootStarter.web)
|
|
kapt(libs.springBoot.configuration.processor)
|
|
}
|
|
i18nKeyGen {
|
|
rootPackage.set("com.gewuyou.forgeboot.webmvc.extension.i18n")
|
|
readPath.set("src/main/resources/i18n/${project.name}")
|
|
level.set(3)
|
|
}
|