随笔分类 -  SpringBoot

摘要:服务部署: 环境准备: JDK: 1.8 cas-overlay-template :5.3.x https://github.com/apereo/cas-overlay-template maven:3.6.3 导入IDEA,此时会去下载一个依赖:cas-server-webapp-tomcat 阅读全文
posted @ 2020-04-03 14:29 吴振照 阅读(2234) 评论(0) 推荐(0) 编辑
摘要:自定义Starter: Starter会把所有用到的依赖都给包含进来,避免了开发者自己去引入依赖所带来的麻烦。Starter 提供了一种开箱即用的理念,其中核心就是springboot的自动配置原理相关,调用相关的注解实现条件判断,进而进行Bean的注入管理。 基于SpringBoot自动配置原理的 阅读全文
posted @ 2019-09-25 18:04 吴振照 阅读(1704) 评论(0) 推荐(0) 编辑
摘要:编码工具:IDEA SpringBoot版本:2.0.1 JDK版本:1.8 1.使用IDEA构建一个Maven工程 ,添加依赖: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4 阅读全文
posted @ 2019-01-24 16:18 吴振照 阅读(1339) 评论(0) 推荐(0) 编辑
摘要:shrio官网:https://shiro.apache.org/ Apache Shiro是一个功能强大且易于使用的Java安全框架,可执行身份验证,授权,加密和会话管理。借助Shiro易于理解的API,您可以快速轻松地保护任何应用程序 - 从最小的移动应用程序到最大的Web和企业应用程序。spr 阅读全文
posted @ 2018-06-08 14:40 吴振照 阅读(2011) 评论(2) 推荐(0) 编辑
摘要:1.spring boot启动的时候加载主配置类,开启了自动配置功能@EnableAutoConfiguration,先看一下启动类的main方法 public ConfigurableApplicationContext run(String... args) { StopWatch stopWa 阅读全文
posted @ 2018-06-07 17:05 吴振照 阅读(2841) 评论(0) 推荐(0) 编辑
摘要:全局配置: Spring Boot 的默 认 配 置 文 件位置为 src/main/resources/application.properties 。关于SpringBoot应用的配置内容都可以集中在该文件中, 根据我们引入的不同Starter模块,可以在这里定义容器端口号、 数据库连接信息、 阅读全文
posted @ 2018-06-07 15:20 吴振照 阅读(1004) 评论(0) 推荐(0) 编辑
摘要:package com.newings.disaster.shelters.configuration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation 阅读全文
posted @ 2018-06-07 14:30 吴振照 阅读(268) 评论(0) 推荐(0) 编辑
摘要:如何在boot中轻松使用JPA <!--首先引入JPA依赖--><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </depen 阅读全文
posted @ 2018-06-05 13:54 吴振照 阅读(366) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示