微服务
文章平均质量分 63
逆风前行的小强
记录一位初出茅庐的程序员的学习点滴,成功需要时间的沉淀,向前,向前,向前!!
展开
-
SpringBoot(一) 入门
什么是SpringBootSpring Boot是由Pivotal团队提供的全新框架,其设计目的是用来简化新Spring应用的初始搭建以及开发过程。该框架使用了特定的方式来进行配置,从而使开发人员不再需要定义样板化的配置Spring Boot具有如下特性:1、为基于Spring的开发提供更快的入门体验 2、开箱即用,没有代码生成,也无需XML配置。同时也可以修改默认值来满足特定的需求。原创 2017-07-18 11:13:41 · 398 阅读 · 0 评论 -
SpringBoot 启动服务器失败 报错 spring-boot Failed to start component [StandardServer[-1]]
2017-08-9 13:45:06,131 [ERROR] [main] [org.springframework.boot.SpringApplication.run(SpringApplication.java:339)] Application startup failedorg.springframework.context.ApplicationContextException: Un原创 2017-08-09 17:18:21 · 44152 阅读 · 8 评论 -
springboot之模板引擎 --- thymeleaf
1.Thymeleaf 是个什么?Thymeleaf是一款用于渲染XML/XHTML/HTML5内容的模板引擎。类似JSP,Velocity,FreeMaker等,它也可以轻易的与Spring MVC等Web框架进行集成作为Web应用的模板引擎。与其它模板引擎相比,Thymeleaf最大的特点是能够直接在浏览器中打开并正确显示模板页面,而不需要启动整个Web应用。2.Thymeleaf初探相比于其他原创 2017-10-10 14:42:22 · 771 阅读 · 0 评论 -
springBoot thymeleaf与Spring整合
thymeleaf在javaweb中运用的越来越多了,最主要的原因可能在于,jsp在运用中不能很好的将前后端分离,而thymeleaf是以.html为后缀,能够不需要启动整个应用,直接的在浏览器中进行浏览,下面我们就看看如何将thymeleaf与spring进行整合:1.引入依赖maven中直接引入 <dependency> <groupId>org.springframework.bo原创 2017-10-10 14:55:50 · 1254 阅读 · 0 评论 -
Spring Boot 定时任务实例分析
首先使用maven搭建一个Springboot 项目。 添加依赖到pom.xml中<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter&...原创 2018-03-21 16:03:04 · 6514 阅读 · 0 评论 -
SpringCloud Eureka 报错 无法启动问题
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call ‘refresh’ before multicasting events via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbe...原创 2018-02-24 14:34:09 · 7269 阅读 · 3 评论