ICode9

精准搜索请尝试: 精确搜索
  • Dubbox服务的提供方配置2019-07-02 10:02:03

    在src/main/resources下创建applicationContext-service.xml ,内容如下: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans"     xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta

  • 使用 Spring Boot Actuator 构建 RESTful Web 应用2019-07-02 09:50:01

      Spring Boot Actuator 是 Spring Boot 的一个子项目。通过它,可以很轻易地为应用提供多种生产级服务。本教程中,你将通过构建一个应用来学习如何添加这些服务。 1. 你需要构建什么 本教程将带你使用 Spring Boot Actuator 创建一个 “hello world” RESTful Web 服务。你需要构

  • limits the number of elements in an IN predicate to 2100 entries.2019-07-02 08:47:54

    org.hibernate.engine.jdbc.spi.SqlExceptionHelper 131 - [TxId : f68db5f5b-qmgnc^1561639897640^271530 , SpanId : 360544073895766848] The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Too many parameters were pr

  • Spring Boot:使用Redis存储技术2019-07-01 19:01:05

    综合概述 Redis是一个开源免费的高性能key-value数据库,读取速度达110000次/s,写入速度达81000次/s。Redis支持丰富的数据类型,如Lists, Hashes, Sets 及 Ordered Sets 数据类型。Redis的所有操作都是原子性的,要么成功执行要么失败完全不执行。另外还可以通过MULTI和EXEC指令包起来支

  • Springboot整合quartz框架(附代码)2019-07-01 18:51:14

    以前使用springmvc项目时,整合quartz框架多用配置文件的形式,使用springboot后,可以完全用注解来整合quartz。 首先创建一个简单的maven项目,然后修改pom配置文件,引入需要用到的依赖 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-p

  • spring service层 循环引用问题。2019-07-01 16:53:09

    spring service层 循环引用问题。  报错信息如下: Error creating bean with name 'smsCodeApiController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: privat

  • Spingboot使用log4j22019-07-01 15:48:41

    1.pom.xml加入log4j2,并同时把spring boot默认的logging去掉,注意一定要全部排除否则会报错。 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> <exclusions>

  • Feign简单案例2019-07-01 15:39:58

    Feign是一个声明式的Web Service客户端,它的目的就是让Web Service调用更加简单。Feign提供了HTTP请求的模板,通过编写简单的接口和插入注解,就可以定义好HTTP请求的参数、格式、地址等信息。 Feign = Ribbon(按顺序调用) + RestTemplate pom.xml添加的配置 <dependencies> <d

  • Spring 配置标签——util标签2019-07-01 14:54:18

    Spring 配置标签——util标签     一、配置applicationContext.xml <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:c="http://www.springframework.org/schema/

  • org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type sette2019-07-01 09:00:46

    六月 29, 2019 5:42:45 下午 org.apache.catalina.core.AprLifecycleListener init信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\OM_HOME\native\WIN32;D:\OM_H

  • ssm插件配置(idea)2019-07-01 08:47:54

    1.ssm框架springmvc-servlet配置 <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="

  • Spring_搭建过程中遇到的问题2019-06-30 22:51:42

    先看一下问题:   1.在web.xml中配置Spring 加载Spring mvc的时候配置如下:      <!--配置SpringMVC的前端控制器--> <servlet> <servlet-name>DispatcherServlet</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</

  • SpringDataRedis(SpringData)2019-06-30 18:48:51

    介绍:在lettuce那一篇里面写了用lettuce连接数据库,并且操作redis数据库 结构图: 1.依赖包 <!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-redis --><dependency> <groupId>org.springframework.data</groupId> <artifactId>spring

  • Dubbo与SSM整合(认证授权)步骤2019-06-30 16:43:54

    1.导入web项目,创建authentication模块,并修改pom.xml文件 2.将profiles文件粘贴到authentication模块中,profiles文件夹里面有两个文件database.properties和redis.properties文件 修改database.properties中的数据库连接属性(用户名,密码,数据库名称等),修改redis.properties文件redis属

  • Spring boot 去除URL 里的 JSESSIONID2019-06-30 09:40:35

    方法一 application.yml 里设置 server: port: 80 servlet: session: tracking-modes: cookie cookie: http-only: true 方法二 启动类继承SpringBootServletInitializer 类,重写 onStartup 方法 import org.springframework.boot.SpringApplication; i

  • Spring注解驱动开发(二)-----生命周期、属性赋值2019-06-28 23:00:59

    bean的生命周期 bean的生命周期:bean创建---初始化----销毁的过程容器管理bean的生命周期;我们可以自定义初始化和销毁方法;容器在bean进行到当前生命周期的时候来调用我们自定义的初始化和销毁方法-----一共四种方式 构造(对象创建) 单实例:在容器启动的时候创建对象多实例:在每次获取的

  • springboot进行maven打包不能启动2019-06-28 13:29:04

    这是官网给出的例子: 先上pom文件: <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/xsd/maven-4.0.0.xsd&qu

  • Java-Class-@I:org.springframework.validation.annotation.Validated2019-06-28 09:54:59

    ylbtech-Java-Class-@I:org.springframework.validation.annotation.Validated   1.返回顶部   2.返回顶部 1、 package com.ylbtech.api.controller.operation;import cn.hutool.core.date.DateUtil;import com.ylbtech.api.core.response.Result;import co

  • websocket 中使用Service层的方法2019-06-27 23:01:53

    课设做了个使用websocket在线聊天的小demo,在websocket调用service层时,报空指针异常,底层程序员就只会百度了~ 记下这个解决办法吧。 首先创建一个类 import org.springframework.beans.BeansException;import org.springframework.context.ApplicationContext;import org.springfra

  • Spring session + SpringBoot + redis 实现session共享2019-06-27 14:48:22

    redis 安装参考: https://blog.csdn.net/u013792404/article/details/93873585 nginx安装参考: https://mp.csdn.net/postedit/93863306   springboot 版本:2.0.6 maven依赖:   spring-boot-starter-data-redis   和   spring-session-data-redis <?xml version="1.0" e

  • Java-Class-C:org.springframework.http.converter.StringHttpMessageConverter2019-06-27 13:51:35

    ylbtech-Java-Class-C:org.springframework.http.converter.StringHttpMessageConverter   1.返回顶部 1.1、 import org.springframework.http.converter.StringHttpMessageConverter; 1.2、 restTemplate.getMessageConverters().set(1, new StringHttpMessageConve

  • Java-Class-C:org.springframework.http.HttpHeaders2019-06-27 13:41:56

    ylbtech-Java-Class-C:org.springframework.http.HttpHeaders   1.返回顶部 1.1、 import org.springframework.http.HttpHeaders; 1.2、 //请求头 HttpHeaders headers = new HttpHeaders();headers.setContentType(MediaType.APPLICATION_JSON); 1.3、 2.返回顶

  • spring boot 整合redis2019-06-26 21:01:09

    1、添加pom依赖: 注意:建议不要使用spring-boot-starter-redis,此包Jun, 2017后已停止维护 示例: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-cache</artifactId> <version>${spring-boot.version}&l

  • Disconf配SpringBoot实战(自动刷新无需重启)2019-06-26 17:50:25

    前置环境需要的配置: disconf环境搭建:https://blog.csdn.net/qq_37598011/article/details/93619525 SpringBoot与Disconf整合 pom文件 这里我用的是SpringBoot2.0 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0&qu

  • springmvc常用配置2019-06-26 16:43:43

    <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframew

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

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

ICode9版权所有