ICode9

精准搜索请尝试: 精确搜索
  • springboot2.x整合rabbitMQ2019-07-07 09:52:29

    一,相关依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId> </dependency> <dependency> <groupId>c

  • Exception encountered during context initialization - cancelling refresh attempt: org.springframewor2019-07-06 20:38:43

    Cannot resolve reference to bean ‘transactionManager’ while setting bean property 等错误 警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating be

  • 在使用schedule创建定时任务时,出现空指针的解决方式。2019-07-06 19:56:18

    当我们使用spring boot整合schedule创建定时任务时,出现空指针,很有可能是因为配置定时任务类,创建job对象的时候,由于job工程接收到任务类创建对象是通过反射创建,通过放射创建的对象并不会将该对象放入spring容器,而在定时任务类进行注入业务类的时候无法注入。所以需要手动的将任务类

  • Spring Boot:整合Spring Data JPA2019-07-06 17:57:33

    综合概述 JPA是Java Persistence API的简称,是一套Sun官方提出的Java持久化规范。其设计目标主要是为了简化现有的持久化开发工作和整合ORM技术,它为Java开发人员提供了一种ORM工具来管理Java应用中的关系数据。 简而言之,JPA提供了使用面向对象的方式操作数据库的功能。JPA充分吸收了

  • spring boot 初始化2019-07-06 16:01:35

    准备工具: 1.eclipse 2.maven.   创建一个maven project a.打开pom.xml. 加入需要的依赖:   <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0

  • Error creating bean with name 'XXX': Injection of autowired dependencies failed解决办法2019-07-06 14:36:18

    使用SpringMVC框架,这条完整的error: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountCtrl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationExcepti

  • maven pom配置文件样本2019-07-06 11:05:03

    <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.

  • 跟我学SpringCloud | 第六篇:Spring Cloud Config Github配置中心2019-07-06 09:02:01

    SpringCloud系列教程 | 第六篇:Spring Cloud Config Github配置中心 Springboot: 2.1.6.RELEASE SpringCloud: Greenwich.SR1 如无特殊说明,本系列教程全采用以上版本 随着分布式项目越来越大,勤劳的程序猿们会开始面临一个挑战,配置文件会越来越繁杂,虽然spring提供了一个鸡肋版

  • 2 第一个 SpringBoot 应用程序2019-07-05 16:39:20

    第一个 SpringBoot 应用程序   前面介绍了 SpringBoot,既然那么好用,我们自然先玩一下,演示前后分离中后端项目的 api 接口 1 创建项目 打开 IDEA,File -> new -> Project -> Spring Initializr,如下图所示 [外链图片转存失败(img-4REJCUhJ-1562315312636)(https://i.ibb.co/

  • SpringBoot原理简单分析2019-07-05 12:35:47

    文章目录1.1 起步依赖分析1.1.1 spring-boot-starter-parent分析1.1.1.1 常见依赖管理1.1.1.1 关于application文件的加载1.1.1 spring-boot-starter-web分析1.2 自动配置原理解析1.2.1 @SpringBootApplication注解解析1.2.1.1 @SpringBootConfiguration 注解1.2.1.2 @Enabl

  • springboot整合Druid数据源2019-07-05 11:35:22

    Druid数据源是阿里开发,建议使用 1.引入druid依赖 代码如下: <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.1.18</version> </dependency> 2.在applic

  • spring-boot学习 (Groovy与Spring Boot Cli)2019-07-04 23:04:04

    一、使用idea创建一个spring-boot项目,选择groovy语言   二、编写相应代码     1、创建实例类 package com.zhi.exampleclass Man { Long id String name String phone Man(Long id, String name, String phone) { this.id = id this.name = name

  • Spring之事务处理2019-07-04 21:08:13

    数据库事务(Database Transaction) ,是指作为单个逻辑工作单元执行的一系列操作,要么完全地执行,要么完全地不执行。 事务处理可以确保除非事务性单元内的所有操作都成功完成,否则不会永久更新面向数据的资源。通过将一组相关操作组合为一个要么全部成功要么全部失败的单元,可以

  • SSH框架2019-07-04 19:50:40

      pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <mod

  • Apache Dubbo的案例2019-07-04 19:43:40

    写个案例,直接上手。 1:安装Dubbo的注册中心。这里我使用zookeeper作为Dubbo的服务注册和发现中心。下载、安装、配置zookeeper这里不再赘述。注意:Windows的智能作为本机测试或者学习使用,不可用到生产上,Windows版本的下载、安装、配置在这篇博客中:https://blog.csdn.net/CDW2328

  • springboot创建多个数据源2019-07-04 18:43:03

    application.properties文件内容如下: server.port=8080 logging.path=/user/local/log logging.level.com.favorites=DEBUG logging.level.org.springframework.web=INFO logging.level.org.hibernate=ERROR spring.datasource.first.driver-class-name=oracle.jdbc.drive

  • Spring Cloud教程12019-07-04 16:44:10

    如果此教程对您有帮助,就请有钱的捧个钱场,没钱的捧个人场(转载分享)哦~ 更多免费教程资源请访问:https://blog.csdn.net/hellozpc 本教程代码下载地址:       https://download.csdn.net/download/zpcandzhj/10762209 SpringCloud中文网:         https://

  • JAVA测试运行时JpaSystemException的解决方法2019-07-03 21:49:09

    运行测试时JpaSystemException的解决方法 今天分享一下我在项目中遇到的一个新手比较容易犯的错误: 代码如下: 测试代码运行时发生了异常JpaSystemException,报错信息如下: 将报错信息贴出来: org.springframework.orm.jpa.JpaSystemException: could not execute statement;

  • SpringBoot 部署到Tomcat2019-07-03 18:45:33

    1.修改pom.xml文件 <packaging>war</packaging> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

  • Spring Data JPA2019-07-03 17:52:12

    第1章 Spring Data JPA的概述 1.1 Spring Data JPA概述   Spring Data JPA 是 Spring 基于 ORM 框架、JPA 规范的基础上封装的一套JPA应用框架,可使开发者用极简的代码即可实现对数据库的访问和操作。它提供了包括增删改查等在内的常用功能,且易于扩展!学习并使用 Spring Data JPA

  • 跟我学SpringCloud | 第三篇:服务的提供与Feign调用2019-07-02 20:30:48

    上一篇,我们介绍了注册中心的搭建,包括集群环境吓注册中心的搭建,这篇文章介绍一下如何使用注册中心,创建一个服务的提供者,使用一个简单的客户端去调用服务端提供的服务。 本篇文章中需要三个角色,分别是服务的提供者,服务的消费者,还有一个是上一篇文章的主角——注册中心Eureka(使

  • spring cloud学习笔记三 Feign与Ribbon负载均衡的区别2019-07-02 16:43:16

    一、Feign的介绍   Feign一般比较书面的解释是:Feign是一个声明式的WebService客户端,使用Feign编写的WebService客户端更加简单,他的使用方法是定义一个接口,然后在上线添加注解,,同事也支持JAX-RX标准的注解,Feign也支持可拔插式的编码器和解码器,Spring Cloud对Feign进行了封装,使其支

  • 创建spring Cloud Gateway2019-07-02 14:30:47

    创建spring Cloud Gateway 一、准备pom.xml依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-gateway</artifactId> </dependency> <dependency> <groupId>org.sprin

  • SpringCloud之服务注册与发现Eureka+客户端Feign2019-07-02 10:55:41

      前言   SpringCloud 是微服务中的翘楚,最佳的落地方案。   Eureka 作为注册中心,是 SpringCloud 体系中最重要最核心的组件之一。   Feign 使用接口加注解的方式调用服务,配合 Eureka 还能实现负载均衡。   源码   GitHub地址:https://github.com/intomylife/SpringCloud

  • spring+Kafka+springmvc Demo2019-07-02 10:49:58

    一、下载(官网下载:http://kafka.apache.org/downloads.html) 任意下载一个zip 二、制作demo示例,spring+springmvc+Kafka开发前请先安装zookeeper,传送门                                               1. 启动kafka服务:安装目录下.\bin\windows\kafka-s

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有