ICode9

精准搜索请尝试: 精确搜索
  • 四、SpringBoot2开发环境搭建2019-09-05 14:36:18

    SpringBoot2开发环境搭建 安装JDK 双击“jdk-8u162-windows-x64.exe”,启动安装程序进行安装,JDK1.8以上版本可以不用配置环境变量。 STS环境(集成spring版本的eclipse) 安装STS STS不用安装,直接解压就能运行。建议在D盘或者E盘新建一个文件夹“sts”,然后把“spring-t

  • SpringBoot2 Filter执行两次问题解决2019-09-02 11:02:21

    @Configurationpublic class MyFilterConfig { @Bean(name="sysVisitFilter") public SysVisitFilter sysVisitFilter(){ return new SysVisitFilter(); } @Bean public FilterRegistrationBean sysVisitFilterBean() { FilterRegis

  • springboot2.X 使用spring-data组件对MongoDB做CURD2019-09-01 19:51:32

    springboot2.X 使用spring-data组件对MongoDB做CURD 使用背景 基于快速开发,需求不稳定的情况, 我决定使用MongoDB作为存储数据库,搭配使用spring-data 因为快速开发,使用spring data可以直接在类上建表等其他操作,而且对于复合数据模型,MongoDB可以直接存储 代码地址 gitee githu

  • springboot2集成sharding-jdbc分库分表2019-09-01 18:35:49

    sharding-jdbc简介: 定位为轻量级Java框架,在Java的JDBC层提供的额外服务。 它使用客户端直连数据库,以jar包形式提供服务,无需额外部署和依赖,可理解为增强版的JDBC驱动,完全兼容JDBC和各种ORM框架。 适用于任何基于Java的ORM框架,如:JPA, Hibernate, Mybatis, Spring JDBC Template

  • 小D课堂 - 零基础入门SpringBoot2.X到实战_第4节 Springboot2.0单元测试进阶实战和自定义异常处理_23、SpringBoot2.x启动原理概述2019-08-27 13:01:10

    笔记 2、SpringBoot2.x启动原理概述    简介:讲解SpringBoot启动流程概述和基本加载案例  开始 启动类,run是整个启动的入口 run里面又调用其他方法的重载 stopWatch监听整个应用程序 运行的监听器 通过有stopWatch打印启动信息 确定我们的主类。通过方法deduceMainApplicat

  • springboot2 kafka 配置2019-08-26 17:40:54

    原文链接:https://juejin.im/post/5d5644705188257bc557807e Spring Boot 2.0 快速集成整合消息中间件 Kafka

  • SpringBoot2 学习5集成Thymeleaf2019-08-12 20:39:16

    整个项目文件结构 POM 关键: org.springframework.boot spring-boot-starter-thymeleaf <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

  • springboot2 集成swaggerui2019-07-23 20:55:19

    1.引入jar包      <!--swagger--> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.6.1</version> </dependency

  • springboot2 集成web+mybatis+redis2019-07-16 19:51:45

    1.引入pom.xml   jwt security 可以不引入 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.3.RELEASE</version> <relativ

  • springboot2.x纯注解整合dubbo2019-07-13 18:03:28

    springboot1.x和springboot2.x整合差距挺大的,基于最新的2.x进行整合,使用纯注解的方式 依赖选取 首先pom文件的依赖引入,maven仓库有Apache和alibaba两个 Dubbo早已孵化完成,破壳而出,成为Apache顶级项目,这里引用Apache的maven依赖 框架搭建 采用maven聚合项目,架构如图所示 详细层级

  • springboot2.x整合rabbitMQ2019-07-07 09:52:29

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

  • 基于Springboot2.x的搭建个人博客2019-06-29 22:29:09

    介绍 一个基于Springboot2.x的个人博客,ORM框架使用的是Mybatis,前端渲染模板引擎使用的是Freemarker,前端UI框架使用的是Layui,数据库使用的是Mysql5.6.x,图片存储在阿里云OSS上,全文搜索引擎使用Luncene。笔者小站:https://www.qiucode.cn/ Github地址: https://github.com/zhenq

  • MySQL安装教程并使用springboot2和Mybatis测试2019-06-21 23:02:30

    目录 MySQL是什么 MySQL安装 开始使用一下MySQL 用spring boot2+Mybatis试试MySQL 创建数据库和表 拉通spring boot2+mybatis 目录 MySQL是什么 ** MySQL是一个关系型数据库管理系统,由瑞典MySQL AB 公司开发,目前属于 Oracle 旗下产品。MySQL 是最流行的关系型数据库管理

  • Springboot2.x 自动创建表并且执行初始化数据2019-06-11 15:00:06

    1.使用springboot jdbc初始化数据库 项目结构 schema.sql drop table if exists user; create table user (id bigint(20) not null auto_increment, username varchar(40) DEFAULT NULL, name varchar(20) DEFAULT NULL, age int(3) DEFAULT NULL, balance decimal(10,2) DEFA

  • springboot2 设置系统访问的默认首页2019-06-07 08:51:38

      @Configurationpublic class WebMvcConfig implements WebMvcConfigurer{ @Override public void addViewControllers(ViewControllerRegistry registry){ //设置系统访问的默认首页 registry.addViewController("/").setViewName("redirect:/app/

  • SpringBoot2.X中的静态资源访问失效2019-05-28 13:54:43

      今天开始使用SpringBoot写项目,于是先让其能够访问静态资源,但是配置半天也不能访问我的helloWorld页面,原来,在SpringBoot2.x中,一下静态资源路径不生效了。   classpath:/META/resources/,classpath:/resources/,classpath:/static/,classpath:/public/)不生效。   springboot2.x

  • SpringBoot2+Druid+JdbcTemplate+MySql实现增删改查2019-05-08 14:44:10

    1.配置pom.xml文件 <?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.

  • springboot2.x 整合redis集群的几种方式2019-05-07 17:42:30

    一、不指定redis连接池 #系统默认连接池 yml配置文件: spring: redis: cluster: nodes: - 192.168.1.236:7001 - 192.168.1.236:7002 - 192.168.1.236:7003 - 192.168.1.244:7004 - 192.168.1.244:7005 - 192.168.1.244:7006

  • 关于springboot2.x 的 RedisCacheManager变化2019-04-04 18:51:29

    springboot配置缓存过期时间,大部分是使用ReidsCacheManager来进行自定义的配置 以下是大部分网上的代码(这也是基于springboot1.x的版本可以使用的) @Beanpublic CacheManager cacheManager(RedisTemplate redisTemplate) { RedisCacheManager cacheManager= new RedisCacheManage

  • springboot踩过的坑2019-03-29 11:48:53

    2019/3/29 java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getHttpServletMapping()Ljavax/servlet/http/HttpServletMapping; SpringBoot2.x内置的tomcat9,tomcat9使用的是servletAPI v4 但是SpringBoot 2.x还包含着 servletAPI v3.1 解决方法:将tomcat版本

  • springboot2+security+mysql实现授权认证服务2019-03-25 11:51:33

    文档说明 最近在搭建oauth2.0服务器,发现自己能找到的文章要么是1.5版本,要么就是内存存储,所以自己用mysql搭建了一个授权服务器(client和user都用数据库) 核心代码 授权服务器 @Configuration @EnableAuthorizationServer public class AuthorizationServerConfig extends A

  • SpringBoot22019-03-22 21:47:34

      一 回顾     谈谈你如何理解springboot Springboot常用的注解有哪些分别有什么用 Springboot的原理是什么 什么是Java配置 总结见:https://mp.csdn.net/postedit/88732742 二 视图渲染 2.1、模板引擎       我们之前使用的视图都是JSP,但是JSP速度比较慢(本质是servlet),我

  • 息队列介绍和SpringBoot2.x整合RockketMQ、ActiveMQ2019-03-15 17:52:01

    ========================13、消息队列介绍和SpringBoot2.x整合RockketMQ、ActiveMQ =======================   1、JMS介绍和使用场景及基础编程模型 简介:讲解什么是小写队列,JMS的基础知识和使用场景 1、什么是JMS: Java消息服务(Java Message Service),Java平台中关于面向消息中

  • 生产上SpringBoot2.x Scheduled定时任务重复执行两次解决方案2019-03-11 13:48:41

    一、问题描述 在SpringBoot2.x 的项目上写了个定时任务,每天凌晨1点执行,那么令人费解的是:定时任务在服务器上总是执行两次,这个bug就闹大了,但是在本机调试始终只执行一次,查了很多原因都说是实例化bean两次的问题,但是看了很多解决方案都没有解决… 如下面代码块: @Scheduled(cron =

  • Springboot2.x 集成jsp2019-03-08 12:04:24

    1、添加pom依赖 <!--引入springboot 内嵌tomcat对jsp的解析包--><dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId></dependency><!--servlet依赖jar--><dependency> <

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

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

ICode9版权所有