Easter79的头像 ID: 78512826728

Easter79

HelloWorld 社区成员

Easter79

文章2818
个人网站0
加入社区2026

springboot快速入门(三)——Controller的使用

一、概述  controller的分类:  !(https://oscimg.oschina.net/oscnet/d2a187e72da3bdad50e86e56e89d3850dab.jpg)  相关的使用方式和springMVC的类似了,细节不再赘述二、Controller使用  

springboot学习(四) 日志管理

1、简介  SpringBoot内部日志系统使用的是CommonsLogging,但开放底层的日志实现。默认为会JavaUtilLogging,Log4J,Log4J2和Logback提供配置。每种情况下都会预先配置使用控制台输出,也可以使用可选的文件输出。 2、日志格式  默认的日志输出格式为:1201

springboot学习随笔(二)自定义静态资源路径

有的时候我们会把静态资源staticpublic等目录下,有的时候需要自定义那么就需要修改默认路径了。思路1.获得webmvc的适配器2.在适配器里注册自己的路径代码案例:importorg.springframework.context.annotation.Configuration;importorg.springf

springboot学习总结(九)Spring security原理浅谈

认证是由AuthenticationManager来管理的,但是真正进行认证的是AuthenticationManager中定义的AuthenticationProvider。AuthenticationManager中可以定义有多个AuthenticationProvider。当我们使用authenticationprovider元素来

springboot学习心得

1、mvnpackage加载运行一个含有pom.xml的目录并生成target目录2、mvndependency:tree显示项目所有依赖的树状结构3、业务委托给了SpringBoot的SpringApplication类通过调用run()执行4、mvnspringboot:run启动服务程序【localhost:8

springboot基础五:集成redis

!(https://oscimg.oschina.net/oscnet/c2334f690d4a45aba38809230b398773.png)前言在项目里redis作为缓存已经是国际惯例了,那springboot项目里如何能与redis集成进行使用呢?照着教程做吧配置1.引入pom

springboot基于角色的权限认证

一、使用场景springboot、springSecurity、mybatis 基于角色的权限控制二、参考文献https://liuyanzhao.com/7431.html(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fliuyanzhao.com%2F7431.htm

springboot基于spark

参考文章:使用springboot构建restapi远程提交spark任务(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fblog.csdn.net%2Fhlp4207%2Farticle%2Fdetails%2F100831384)sparksubmit动态提交的办法(Sp

springboot和flowable modeler整合

准备:项目使用的是springboot2.1.5版本,flowable6.4.0版本1\.IDEA新建SpringInitializr项目,选择依赖,web和MySQL2\.修改pom.xml依赖<?xmlversion"1.0"encoding"UTF8"?<projectxmlns"http:/

springboot启动过程

springboot系列之启动流程(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Failijie.top%2Farchives%2Fboot)

springboot原理

SpringBoot为我们做的自动配置,确实方便快捷,但一直搞不明白它的内部启动原理,这次就来一步步解开SpringBoot的神秘面纱,让它不再神秘。 @SpringBootApplicationpublicclassApplication{publicstaticvoidmain(Str

springboot分布式数据源(Mysql)

_本文环境接上文多数据源配置的环境。_如果采用不同的数据源,当同时对不同的数据源进行操作时,事务无法正确的回滚,此时需要使用MysqlXADataSource来代理数据源。MybatisDBD1Config.java:packagecom.bxw.configuration;importcom.mysql.