| dependencies { |
| testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' |
| testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' |
| implementation 'org.hibernate:hibernate-core:3.6.3.Final' |
| } |
| dependencies { |
| testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' |
| testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' |
| implementation 'org.hibernate:hibernate-core:3.6.3.Final' |
| implementation 'org.slf4j:slf4j-api:1.4.0' |
| } |
- 最终查看

| Gradle 会使用最新版本的 jar 包【考虑到新版本的 jar 包一般都是向下兼容的】,实际开发中,还是建议使用官方自带的这种解决方案 |
| dependencies { |
| testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' |
| testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' |
| implementation('org.hibernate:hibernate-core:3.6.3.Final'){ |
| |
| exclude group: 'org.slf4j' |
| exclude module: 'slf4j-api' |
| exclude group: 'org.slf4j',module: 'slf4j-api' |
| } |
| |
| implementation 'org.slf4j:slf4j-api:1.4.0' |
| } |
| dependencies { |
| testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' |
| testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' |
| implementation('org.hibernate:hibernate-core:3.6.3.Final'){ |
| |
| transitive(false) |
| } |
| |
| implementation 'org.slf4j:slf4j-api:1.4.0' |
| } |
| dependencies { |
| testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' |
| testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' |
| implementation('org.hibernate:hibernate-core:3.6.3.Final') |
| |
| implementation('org.slf4j:slf4j-api:1.4.0!!') |
| |
| implementation('org.slf4j:slf4j-api:1.4.0'){ |
| version{ |
| strictly("1.4.0") |
| } |
| } |
| } |
| |
| configurations.all() { |
| Configuration configuration -> |
| |
| configuration.resolutionStrategy.failOnVersionConflict() |
| } |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 字符编码:从基础到乱码解决
· 提示词工程——AI应用必不可少的技术