Spring-boot +Gradle依赖管理+Mybatis 配置文件
2017-12-22 14:02
295 查看
task wrapper(type: Wrapper) { gradleVersion = '3.5' } buildscript { ext { springBootVersion = '1.5.6.RELEASE' } repositories { mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") } } apply plugin: 'java' apply plugin: 'org.springframework.boot' repositories { mavenCentral() maven { credentials { username 'deploy' password 'Value888' } url 'http://106.14.251.153:18081/nexus/content/repositories/snapshots/' } maven { credentials { username 'deploy' password 'Value888' } url 'http://106.14.251.153:18081/nexus/content/repositories/releases/' } } configurations { all*.exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging' } dependencies { compile 'org.springframework.boot:spring-boot-starter-web' compile 'org.springframework.boot:spring-boot-starter-log4j2' compile 'org.springframework.boot:spring-boot-starter-actuator' compile 'org.mybatis.spring.boot:mybatis-spring-boot-starter:1.2.1' compile "org.springframework.boot:spring-boot-starter-freemarker" compile 'org.apache.commons:commons-lang3:3.5' compile 'org.mybatis.generator:mybatis-generator-core:1.3.5' compile 'org.projectlombok:lombok' compile "org.apache.httpcomponents:httpclient" compile 'com.alibaba:druid:1.0.29' compile 'com.alibaba:fastjson:1.2.29' runtime files('./src/main/resources/lib/ojdbc6.jar') testCompile 'org.springframework.boot:spring-boot-starter-test' } test { testLogging { showStandardStreams = true } } if (!hasProperty('mainClass')) { ext.mainClass = 'com.ftvalue.customer.CustomerApplication' } configurations.all { resolutionStrategy.cacheChangingModulesFor 0, 'seconds' }
相关文章推荐
- 使用Gradle构建SpringBoot工程系列:第四篇:项目初始化(编辑build.gradle文件,引入项目基本配置及依赖)
- 基于maven管理的项目中spring+mybatis配置数据源读取不到properties属性文件的问题
- 使用spring管理事务的时候,配置文件的主意事项。
- Spring、Spring MVC、MyBatis整合文件配置详解
- SpringMVC+mybatis的配置(依赖maven)
- SSM:spring+springmvc+mybatis框架中的XML配置文件功能
- SpringBoot之Mybatis连接MySQL进行CRUD(注解&配置文件)(简测试版)
- mybatis与spring整合(基于配置文件)
- Spring是如何管理配置文件中大量的对象的?对一个serviceImpl,是单个还是多个?----待补充
- mybatis与spring整合(基于配置文件)
- spring整合mybatis(开启包扫描器)出现db.properties配置文件失效的解决方案
- Spring, MyBatis 多数据源的配置和管理
- Spring、Spring MVC、MyBatis整合文件配置详解
- gradle 工程依赖 打包 配置文件
- MyBatis整合到Spring 配置文件总结与分析
- Spring配置扫描mybatis的mapper文件注意:
- Mybatis3.2.1使用例三:Mapper方式集成Spring、配置文件提供SQL
- spring mvc+mybatis配置多数据源文件
- 如何在spring配置文件中注册mybatis配置文件
- Spring Boot + Gradle 依赖管理