上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: SpringBoot Security入门 SpringBoot Security 可以为我们项目提供认证、授权功能。 一、认证 1、新建个工程 1.1 pom依赖 <!-- SpringBoot Security --> <dependency> <groupId>org.springframew 阅读全文
posted @ 2021-05-10 18:55 金盛年华 阅读(291) 评论(0) 推荐(0) 编辑
摘要: SpringBoot整合Mybatis 一、pom导入mybatis启动器 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </depe 阅读全文
posted @ 2021-05-09 16:35 金盛年华 阅读(55) 评论(0) 推荐(0) 编辑
摘要: SpringBoot使用JDBC 一、pom引入jdbc启动器 <!-- jsbc启动器 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifa 阅读全文
posted @ 2021-05-09 11:02 金盛年华 阅读(1174) 评论(0) 推荐(0) 编辑
摘要: idea常用设置 1、快捷键设置 File --> setting --> keymap basic :代码提示 Decrease Font Size:减小字体大小 Increase Font Size:增大字体大小 Delete Line:删除整行 Duplicate Line or Select 阅读全文
posted @ 2021-05-08 16:07 金盛年华 阅读(187) 评论(0) 推荐(0) 编辑
摘要: SpringBoot web 开发 1、寻找静态资源路径 WebMvcAutoConfiguration类 ,webmvc自动装配类 addResourceHandlers方法 protected void addResourceHandlers(ResourceHandlerRegistry re 阅读全文
posted @ 2021-05-08 16:04 金盛年华 阅读(57) 评论(0) 推荐(0) 编辑
摘要: SpringBoot 入门学习 1、创建spring boot项目 网页创建 Spring Initializr 在页面配置完直接下载工程即可 idea创建 2、原理初探 pom.xml spring-boot-dependencies:核心依赖在父工程中 我对门在引入一些spring boot依赖 阅读全文
posted @ 2021-05-08 16:01 金盛年华 阅读(53) 评论(0) 推荐(0) 编辑
摘要: SringBoot配置 springboot所有配置 1、配置文件 spring boot使用一个全局的配置文件,配置文件名称是固定的。配置文件的作用就是修改spring boot自动配置的默认值,因为在底层所有配置都是配置好的,这个文件只是用来修改。 application.properties 阅读全文
posted @ 2021-05-08 15:58 金盛年华 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 1、SpringBoot启动会加载大量的自动配置类 2、我们看我们需要的功能有没有在SpringBoot默认写好的自动配置类当中; 3、我们再来看这个自动配置类中到底配置了哪些组件;(只要我们要用的组件存在在其中,我们就不需要再手动配置了) 4、给容器中自动配置类添加组件的时候,会从properti 阅读全文
posted @ 2021-05-08 15:56 金盛年华 阅读(37) 评论(0) 推荐(0) 编辑
摘要: (Java面向对象) Java面向对象 面向对象编程 ( Object-Oriented Programming, OOP ) 面向对象编程的本质就是:以类的方式组织代码,以对象的方式组织(封装)数据。 1、面向对象三大特性 封装 程序追求 高内聚,低耦合; 该露的露,改藏的藏; 类封装,属性私有, 阅读全文
posted @ 2021-05-03 15:33 金盛年华 阅读(76) 评论(0) 推荐(0) 编辑
摘要: (JAVA基础) 1、Java注释 单行注释 // 注释内容 多行注释 /* 多行 注释 内容 */ 文档注释 /** * 文档注释 * @author 作者名 * @version 版本号 * @since 指明需要最早使用的jdk版本 * @param 参数名 * @return 返回值情况 * 阅读全文
posted @ 2021-05-03 10:37 金盛年华 阅读(70) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页