上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: SwaggerAPI框架 1.配置 导入pom.xml <!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui --> <dependency> <groupId>io.springfox</groupId> 阅读全文
posted @ 2021-09-30 20:20 1_f 阅读(20) 评论(0) 推荐(0)
摘要: 3. @Component 介绍: 是spring中的一个注解,它的作用就是实现bean的注入,注解的本质就是一个类,可以代替xml配置文件的 web开发,提供三个@Component注解的衍生注解 @Repository(“名称”):dao层 @Service(“名称”):service层 @Co 阅读全文
posted @ 2021-09-30 11:44 1_f 阅读(18) 评论(0) 推荐(0)
摘要: 2. Configuration 介绍: @configuration用于定义配置类,可替换xml配置文件,被注解的类的内部包含一个或者多个@bean的注解的方法,这些方法会被AnnotationConfigApplicationContext或者AnnotationConfigWebApplica 阅读全文
posted @ 2021-09-30 11:27 1_f 阅读(60) 评论(0) 推荐(0)
摘要: 1. @Bean 介绍 : 是一个方法级别上的注解,主要用在@Configuration注解的类里,也可以用在@Component注解的类里,添加的bean的id为方法名 定义Bean 下面是一个例子 @Configuration public class AppConfig { @Bean pub 阅读全文
posted @ 2021-09-30 11:08 1_f 阅读(39) 评论(0) 推荐(0)
摘要: SpringSecurity安全框架 1. 测试(环境的搭建) 创建springboot项目的带web模块和thymeleaf模块 导入静态的资源,包含各个等级的表以及login.html与index.html 实现controller跳转,在controller中新建一个RouterControl 阅读全文
posted @ 2021-09-27 12:05 1_f 阅读(72) 评论(0) 推荐(0)
摘要: 整合Mybatis 1. 在pom.xml中引入依赖 <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>2.2.0 阅读全文
posted @ 2021-09-26 19:38 1_f 阅读(24) 评论(0) 推荐(0)
摘要: 大前端进阶 目录 前端开发和前端开发工具 Nodejs安装及快速入门 Es6的新语法糖 Npm包管理器 Babel的安装作用 模块化管理 Webpack打包和编译 如何快速构建一个nodejs项目vue-element-admin 1.前端和前端的开发工具 1.1 Nodejs介绍 官网:http: 阅读全文
posted @ 2021-09-25 18:36 1_f 阅读(34) 评论(0) 推荐(0)
摘要: SpringBoot整合JDBC及Druid 1. 新建项目并引入JDBC api mysqlDriver 和SpringWeb springboot会自动帮我们引入上述的启动器 2. 编写application.yaml配置文件 spring: datasource: username: root 阅读全文
posted @ 2021-09-25 18:35 1_f 阅读(42) 评论(0) 推荐(0)
摘要: yaml语法学习 application.yaml 语法结构: key:空格 value 可以修改springboot的默认配置,尝试修改toncat默认启动端口号 server: port: 8081 1. yaml的概述 以数据作为中心,而不是标记语言为重点! 语法要求严格! 空格不能省略 以缩 阅读全文
posted @ 2021-09-25 07:59 1_f 阅读(44) 评论(0) 推荐(0)
摘要: 1. 自动配置的原理 SpringBoot有大量的配置,无法全部记住 分析自动配置的原理 我们以HttpEncodingAutoConfiguration为例解释自动配置原理; //表示这是一个配置类,和以前编写的配置文件一样,也可以给容器中添加组件; @Configuration //启动指定类的 阅读全文
posted @ 2021-09-25 07:59 1_f 阅读(22) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 下一页