摘要: 1.简介 1.1 概述 在实际项目中一般是一个数据源,但是在某些特殊场景可能需要多个数据源,这里以 spring boot jpa 为例演示一下多数据源的配置和使用。 2.演示环境 JDK 1.8.0_201 Spring Boot 2.2.0.RELEASE 构建工具(apache maven 3 阅读全文
posted @ 2020-08-02 22:24 Soulballad 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 1.简介 1.1 概述 The MyBatis-Spring-Boot-Starter help you build quickly MyBatis applications on top of the Spring Boot. By using this module you will achie 阅读全文
posted @ 2020-07-26 22:17 Soulballad 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 1.简介 1.1 概述 This is the central class in the JDBC core package. It simplifies the use of JDBC and helps to avoid common errors. It executes core JDBC 阅读全文
posted @ 2020-07-26 22:15 Soulballad 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 1.简介 1.1 概述 The Java Persistence API is a standard technology that lets you “map” objects to relational databases. The spring-boot-starter-data-jpa PO 阅读全文
posted @ 2020-07-26 22:13 Soulballad 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 1.简介 1.1 概述 Spring Boot Admin is a community project to manage and monitor your Spring Boot ® applications. The applications register with our Spring 阅读全文
posted @ 2020-07-26 22:11 Soulballad 阅读(680) 评论(0) 推荐(0) 编辑
摘要: 1.简介 1.1 概述 Spring Boot includes a number of additional features to help you monitor and manage your application when you push it to production. You c 阅读全文
posted @ 2020-07-20 22:33 Soulballad 阅读(716) 评论(0) 推荐(0) 编辑
摘要: 1.简介 1.1 概述 The Spring Framework provides an easy abstraction for sending email by using the JavaMailSender interface, and Spring Boot provides auto-c 阅读全文
posted @ 2020-07-19 22:20 Soulballad 阅读(498) 评论(0) 推荐(0) 编辑
摘要: 1. 构建块 每个 Gradle 构建都包含三个基本构建块:project、task 和 property。每个构建包含至少-一个 project,进而又包含一个或 多个 task。 project 和 task 暴露的属性可以用来控制构建。 1.1 project 在 Gradle 术语中,一个项 阅读全文
posted @ 2020-07-19 13:40 Soulballad 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1. Java开发 Java插件是Gradle自身装载的一个插件。Java插件提供的基本功能远比源代码编译和打包多。它为你的项目建立了一个标准的项目布局,并确保有意义、有顺序地执行任务。现在,为你的项目创建一个构建脚本并使用Java插件。 1.1 使用插件 使用java插件 apply plugin 阅读全文
posted @ 2020-07-19 13:39 Soulballad 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 假设有一个项目,它由3个模块组成:model、repository、web; 三个模块之间的依赖关系是:web → repository → model 1. Settings settings文件声明了所需的配置来实例化项目的层次结构。在默认情况下,这个文件被命名为 settings.gradle 阅读全文
posted @ 2020-07-19 13:38 Soulballad 阅读(568) 评论(0) 推荐(0) 编辑