随笔分类 -  springboot

摘要:本节版本虽然只用到了基本特性,但可以满足大部分的增删改查。 一、环境准备SpringBoot 1.5.10.RELEASEMybatis-Plus 2.1.9Mybatis-Plus 官方地址:http://mp.baomidou.com/ pom依赖,为了方便,全贴出来吧: <project xm 阅读全文
posted @ 2019-10-28 16:09 威兰达 阅读(6187) 评论(0) 推荐(0) 编辑
摘要:详解springboot整合redis:https://blog.csdn.net/qq_36781505/article/details/86612988 一、环境准备 Redis-x64-3.2.100.zip SpringBoot 1.5.10.RELEASE Redis-x64-3.2.10 阅读全文
posted @ 2019-10-23 09:59 威兰达 阅读(3544) 评论(2) 推荐(0) 编辑
摘要:一、环境准备memcached 1.4.5SpringBoot 1.5.10.RELEASEjava_memcached-release_2.6.6.jarmemcached 1.4.5 windows 下载地址:http://www.runoob.com/memcached/window-inst 阅读全文
posted @ 2019-10-21 16:50 威兰达 阅读(845) 评论(0) 推荐(0) 编辑
摘要:举例:https://blog.csdn.net/qq_35387940/article/details/100514134 Windows下RabbitMQ安装及配置地址: https://blog.csdn.net/zhm3023/article/details/82217222RabbitMQ 阅读全文
posted @ 2019-10-17 16:04 威兰达 阅读(555) 评论(0) 推荐(1) 编辑
摘要:window下安装kafka和zooker,超详细:https://blog.csdn.net/weixin_33446857/article/details/81982455 kafka:安装下载教程网址(CentOS Linux):https://www.cnblogs.com/subendon 阅读全文
posted @ 2019-10-15 18:11 威兰达 阅读(688) 评论(0) 推荐(0) 编辑
摘要:第一种打印debug日志方式: logging.level.com.demo.mapper: debug 第二种打印debug日志方式: 在resource文件夹下新建:logback.xml <?xml version="1.0" encoding="UTF-8"?> <configuration 阅读全文
posted @ 2019-09-25 15:04 威兰达 阅读(1151) 评论(0) 推荐(0) 编辑
摘要:一:在上篇文章pom增加依赖: <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.6.1</version> </dependency> <depen 阅读全文
posted @ 2019-09-25 11:27 威兰达 阅读(702) 评论(0) 推荐(0) 编辑
摘要:一:项目结构: 二:pom文件如下: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.4.RELEASE</ve 阅读全文
posted @ 2019-09-24 20:17 威兰达 阅读(424) 评论(0) 推荐(0) 编辑
摘要:一、数据准备CREATE TABLE `tb_user` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID', `username` varchar(50) NOT NULL COMMENT '用户名', `age` int(11) NOT NUL 阅读全文
posted @ 2019-09-23 19:48 威兰达 阅读(782) 评论(0) 推荐(0) 编辑
摘要:SpringBoot 配置文件默认为application.properties,但是本章节主要讲解yaml文件配置,因为现在的趋势是使用yaml,它是类似于标准通用标记语言的子集XML的数据描述语言,语法比XML简单很多。 pom文件贴在最后面: 一、自定义属性与加载我们把之前项目中的配置文件ap 阅读全文
posted @ 2019-09-09 14:12 威兰达 阅读(498) 评论(0) 推荐(0) 编辑
摘要:1.配置pom: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency 阅读全文
posted @ 2019-08-21 10:59 威兰达 阅读(419) 评论(0) 推荐(0) 编辑
摘要:1.项目格式如下: 1.启动类: 2.controller 类: 3. application.properties: server.port=8080 4.pom.xml文件如下: 5.启动springboot项目访问: post方法:http://localhost:8080/springboo 阅读全文
posted @ 2019-08-20 18:16 威兰达 阅读(536) 评论(0) 推荐(0) 编辑
摘要:一: springboot踩坑记--springboot正常启动但访问404; 1. spring boot的启动类不能直接放在main(src.java.main)这个包下面,把它放在有包的里面就可以了。 2. 正常启动了,但是我写了一个controller ,用的@RestController 阅读全文
posted @ 2019-08-14 17:30 威兰达 阅读(335) 评论(0) 推荐(0) 编辑
摘要:SpringBoot启动流程与源码: 启动流程:初始化一个SpringApplication对象、执行该对象的run方法。 也可以这么说:每个SpringBoot程序都有一个主入口,也就是main方法,main里面调用SpringApplication.run()启动整个spring-boot程序。 阅读全文
posted @ 2019-06-14 16:13 威兰达 阅读(2249) 评论(0) 推荐(2) 编辑
摘要:我们知道启动springboot的项目有三种方式: 运行主方法启动 使用命令 mvn spring-boot:run”在命令行启动该应用 运行“mvn package”进行打包时,会打包成一个可以直接运行的 JAR 文件,使用“java -jar”命令就可以直接运行。 我们在开发的时候,通常会使用前 阅读全文
posted @ 2019-06-14 15:45 威兰达 阅读(2906) 评论(0) 推荐(1) 编辑

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