ICode9

精准搜索请尝试: 精确搜索
  • 基础mybaits-plus2022-09-15 01:00:47

    #配置文件server: port: 8081 spring: application: #应用的名称,可选 name: datasource: druid: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:3306/boke? username: root password: root123 mybatis-pl

  • SpringBoot学习笔记(四)——SpringBoot中的自动配置2022-09-13 21:34:27

    总结:我们之前讲了SpringBoot对bean的配置,但是我们之前在学习SSM框架时,还需要在配置文件中配置很多其它的类及功能。例如SpringMVC中的DispatchServlet来拦截所有请求这种在springboot中就没有要求我们手动配置。而我们的springmvc项目依然可以接收请求的原因就在于上面提到的@Enab

  • SpringBoot学习笔记(二)——starter2022-09-13 19:33:46

    Spring Boot中的starter是Spring Boot的神器之⼀,Spring Boot提⾼了很多的starter,⽽每个starter 其实就是⼀个pom.xml⽂件。 ⽐如在我们项⽬的pom.xml⽂件中,我们依赖了 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifa

  • springboot官方文档解读2022-09-07 00:32:04

    官网地址:https://docs.spring.io/spring-boot/docs/2.7.3/reference/htmlsingle/ 1 第一个springboot项目 我们在一个路径下面创建pom.xml文件 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=&qu

  • 3.了解自动配置原理-依赖版本管理2022-09-03 00:31:53

    在编写springboot的时候 只需要导入starter-web,关于wab的所有依赖都进来了,为什么会进来 1.父项目做依赖管理 在每个项目中的pom.xml都会存在这么一个配置依赖管理 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-p

  • SpringCloud中pom文件的配置2022-08-29 12:30:28

    pom文件中添加依赖 SpringCloud父依赖 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.2.RELEASE</version> </parent> <properties> <!--

  • 部署 prometheus + grafana + nacos2022-08-20 14:35:19

    linux环境部署 prometheus + grafana + nacos对微服务监控 IT学习道场 IT学习道场 2022-06-06 19:34 发表于浙江 收录于合集#IT学习道场靓文集锦34个 自定义的prometheus自定义springboot-starter 创建 wlc-prometheus-starter maven模块,这是我在微服务中的新建的maven模

  • Gateway模块中启动报:Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway at this2022-08-13 15:01:37

    原因是引入了 spring-boot-starter-web依赖 在pom文件中将 spring-boot-starter-web 依赖移除即可 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>

  • Java框架--SpringBoot常用POS文件示例2022-08-06 22:33:50

    <?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

  • Java面试题(七)--Spring Boot2022-08-06 22:04:22

    1、Spring Boot提供了哪些核心功能?(高频) 1、jar包方式运行 通过引入spring-boot-maven-plugin插件可以将springboot项目打包成一个可以直接运行的jar包,运行方式和常规jar包一样java -jar xxx.jar,启动后可以直接运行内嵌的web容器,根据具体引入的依赖来确定到底该启动哪种web容器。

  • spring-boot-dependencies 和 spring-boot-starter-parent2022-08-04 22:34:44

    copy自:spring-boot-dependencies 和 spring-boot-starter-parent 构建springboot项目有两种方式: 第一种是继承spring-boot-starter-parent pom里面指定parent项目: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-pare

  • 自定义springboot-stater2022-07-29 15:04:29

    对于有些场景,我们需要自定义start才能满足。 可参考org.mybatis.spring.boot: 自定义starter的流程如下: 1.starter里引入autoconfigure 2.autoconfigure里引入spring-boot-starter 3.在autoconfigure里的META-INF/spring.factories文件中定义项目启动加载时指定的自动配置类 定义

  • CodeQL使用流程2022-07-21 10:02:40

    前言 好久没用CodeQL了,看了自己之前写的文章发现竟然没有做过相关记录 然后就不知道怎么用了hhh 使用流程 0x1 生成数据库 我们拿到一套源码,首先需要使用CodeQL生成数据库 执行命令: codeql database create <database> --language=<language-identifier> 参数说明: <database>:创建

  • @ConditionalOnMissingBean 如何实现覆盖第三方组件中的 Bean2022-07-16 22:33:09

    1. 自定义一个简单 spring-boot 组件 创建 olive-starter 项目 对应的 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:/

  • 通用mapper2022-07-11 10:35:50

    添加maven:<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <!--通用mapper--> <dependency> <groupId>tk.mybatis</groupId>

  • 01 springcloud 版本的说明和各版本依赖如何引入工程2022-07-09 12:03:53

    springcloud 版本的说明和各版本依赖如何引入工程 一、前言 搭建springcloud的开发环境第一步就是对版本的选择和导入各种依赖,但其很多时候在这一步的时候就会因为版本的不匹配而造成依赖下载错误。 可能会出现下边这几种情况: (1) springcloud的版本和springboot的版本不匹配 (2)

  • starter命名2022-07-08 23:01:01

    官方 starter 命名 前缀:spring-boot-starter- 规则:spring-boot-starter-模块名 举例:spring-boot-starter-web、spring-boot-starter-jdbc 自定义 starter 命名 后缀:-spring-boot-starter 规则:模块-spring-boot-starter 举例:dynamic-datasource-spring-boot-starter、knife4j-sprin

  • springboot入门学习--005.12022-07-01 20:32:41

    内嵌tomcat ​ 当前我们做的SpringBoot入门案例勾选了Spirng-web的功能,并且导入了对应的starter。 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> ​ SpringBoot发现,既然你要做web程序

  • springboot入门学习--005.32022-07-01 20:31:49

    更换内嵌Tomcat ​ 那根据上面的操作我们思考是否可以换个服务器呢?必须的嘛。根据SpringBoot的工作机制,用什么技术,加入什么依赖就行了。SpringBoot提供了3款内置的服务器 tomcat(默认):apache出品,粉丝多,应用面广,负载了若干较重的组件 jetty:更轻量级,负载性能远不及tomcat unde

  • Error creating bean with name 'sqlSessionFactory2022-06-25 01:31:51

    pom文件导错了包。 正确的: <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>2.1.4</version> </dependency>

  • spring-boot-starter-parent not found2022-06-18 22:04:16

    项目开始的springboot版本为2.6.6 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.6.6</version> <relativePath/> <!-- lookup parent from re

  • 基于springboot的员工管理系统2022-06-14 11:31:27

    员工管理系统 数据库结构 代码结构 Maven依赖 <?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依赖到底是啥2022-06-13 08:00:56

    比如springboot中的pom.xml有这个依赖 <!--阿里数据库连接池 --><dependency><groupId>com.alibaba</groupId><artifactId>druid-spring-boot-starter</artifactId><version>${druid.version}</version></dependency>   其实最终访问的就是这个链接,去

  • 后台管理系统之权限管理中的公共模块引入依赖和网关模块2022-06-11 20:35:07

    公共模块 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

  • 自制Spring-boot Starter2022-05-31 00:04:19

    新建Spring boot项目 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.7.0</version> <relativePath/> <!-- lookup parent from repository

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

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

ICode9版权所有