Spring Boot
krain.
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Spring Boot(六)springboot模板引擎——Thymeleaf
一、Thymeleaf简介 Thymeleaf 是一个流行的模板引擎,该模板引擎采用 Java 语言开发 模板引擎是一个技术名词,是跨领域跨平台的概念,在 Java 语言体系下有模板引擎,在 C#、PHP 语言体系下也有模板引擎,甚至在 JavaScript 中也会用到模板引擎技术,Java 生态下的模板引擎有 Thymeleaf 、Freemaker、Velocity、Beetl(国产) 等。 Thymeleaf 对网络环境不存在严格的要求,既能用于 Web 环境下,也能用于非 Web 环境下。在原创 2020-08-25 15:58:37 · 496 阅读 · 0 评论 -
SpringBoot(五)springboot项目中使用拦截器——实现对未登录请求的拦截
一、创建Controllerpackage cn.krain.springboot.web;import cn.krain.springboot.model.User;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.Response原创 2020-08-25 14:23:12 · 2177 阅读 · 1 评论 -
SpringBoot(四)关闭和修改SpringBoot程序启动Logo
一、SpringBoot程序启动默认logo二、关闭logo 修改SpringBoot主程序。package cn.krain.springboot;import org.springframework.boot.Banner;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;@SpringBootAp原创 2020-08-25 11:03:21 · 461 阅读 · 0 评论 -
SpringBoot(三)springboot集成Dubbo——注解式配置
一、Dubbo dubbo初体验,小白级入门案例 在SpringBoot中集成Dubbo,无需再写繁琐的xml配置文件,直接使用注解及其属性进行配置即可。二、创建Interface、Provider、Consumer三个工程interface工程只需要是一个普通的maven java工程即可,provider和consumer需要是SpringBoot工程。三、在Provider、Consumer工程的pom文件中加入依赖pom.xml<dependencies>原创 2020-08-24 23:11:25 · 1748 阅读 · 0 评论 -
Spring Boot(二)springboot集成redis,实现基本的存取值
一、在pom文件中加入redis依赖<!--springboot项目集称redis依赖--><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId></dependency>二、启动Redis三、关闭防火墙,使用图形界面工具连接到原创 2020-08-24 22:01:14 · 2283 阅读 · 0 评论 -
SpringBoot基础知识入门总结(持续更新中......)
SpringBoot基础知识总结一、Spring Boot框架核心配置文件——application.properties application.properties可用于设置内嵌tomcat端口、设置上下文根(访问路径)、自定义参数、配置数据库连接信息、声明mapper文件路径等。# 一、用于设置内嵌tomcat端口server.port=8081# 二、用于设置上下文根(访问路径)server.servlet.context-path=/springboot# 三、自定义参数na原创 2020-08-16 21:44:49 · 349 阅读 · 0 评论
分享