![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SSI
文章平均质量分 75
网罗一天下
滴水穿石
展开
-
SpringBoot项目实战--thymeleaf
1、在pom.xml添加以下jar依赖: org.springframework.boot spring-boot-starter-thymeleaf 2、添加展示页面:thymeleaf模板引擎默认会加载classpath:/templates/目录下的后缀名为"html"的文件,所以添加以下目录及文件: publi原创 2017-01-05 16:07:50 · 795 阅读 · 0 评论 -
SpringBoot项目实战--环境搭建
最近尝试使用Spingboot集成框架来搭建管理系统的环境,由于Springboot框架集成了很多的类库,把一些通过xml文件配置的信息改成通过Bean配置的方式,只要按照默认的配置格式,就可以完成很多的配置,大大的简化了环境的搭建时间,只需要专注于业务本身就可以了根据系统的需要,项目中的主要技术包括:SpringBoot+zookeeper+mybatis+thymeleaf+RabbitMq+原创 2017-01-05 14:31:23 · 2752 阅读 · 1 评论 -
SpringBoot项目实战--mybatis
1、在pom.xml文件中添加以下依赖: org.mybatis.spring.boot mybatis-spring-boot-starter 1.0.0 2、在application.properties文件中添加数据数据源及mybatis配置信息: spring.datasource.driver-class-name= spring.datasource.url= spri原创 2017-01-06 17:33:02 · 1624 阅读 · 0 评论 -
SpringBoot项目实战--ehcache
1、在pom.xml文件中添加以下依赖: org.springframework.boot spring-boot-starter-cache net.sf.ehcache ehcache 2、添加ehcach原创 2017-01-09 15:39:09 · 1353 阅读 · 0 评论 -
SpringBoot项目实战--RabbitMQ
1、在pom.xml文件中添加以下依赖: org.springframework.boot spring-boot-starter-amqp 2、在application.properties文件中添加配置信息: spring.rabbitmq.username=XXX spring.rabbitmq.password=XXX spring.rabbitmq.virt原创 2017-01-09 15:03:39 · 6239 阅读 · 0 评论 -
SpringBoot项目实战--Jetty
1、Springboot默认集成的是Tomcat容易,如果想换成Jetty容器,首先则需要把默认的Tomcat容器去除,然后引入Jetty依赖: 修改pom.xml文件如下: org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-to原创 2017-01-09 16:16:33 · 16756 阅读 · 3 评论 -
SpringBoot项目实战--Servlet、Filter、拦截器
1、声明Servlet: 由于项目使用集成第三方登录认证,需要使用到servlet,则需要在springboot集成环境添加servlet,只需要在Application.java启动类中声明并注入Servlet即可,实现方式如下: @Bean public ServletRegistrationBean setCookieServlet() { return原创 2017-01-09 16:24:12 · 4731 阅读 · 0 评论