springboot
文章平均质量分 53
weixin0605
这个作者很懒,什么都没留下…
展开
-
学习笔记-websocket
学习笔记-websocket。原创 2023-03-23 21:39:57 · 194 阅读 · 0 评论 -
学习笔记-minio
minio分布式文件存储系统概念Bucket桶Object存储文件Drive磁盘SetDrive集合纠删码(EC)Erasure Code保证高可靠性安装dockerdocker compose部署纠删码模式部署分布式集群部署客户端mc操作mc config host ls查看minio服务器名称与地址mc config host add xxx http://xxx.xx.xx.xx:port user原创 2022-04-28 21:04:46 · 599 阅读 · 0 评论 -
学习笔记-springcloud简单入门(eureka&&zuul&&feign&&hystrix&&config)
父工程pom.xml<parent> <groupId>org.springframework.boot</groupId> <artifcatId>spring-boot-stater-parent</artifactId> <version>2.0.7.RELEASE</version></parent><dependencies> <depende原创 2021-11-25 20:50:56 · 583 阅读 · 0 评论 -
学习笔记-RBAC权限管理简单原理
RBACrole-Base Access Control基于角色的访问控制组成UserRolePermission操作对象user-role映射role-permission映射安全原则最小权限原则责任分离原则数据抽象原则数据库useriduser_namepasswordroleidrole_nameuser_roleu_idr_idpermissionidpermission_name原创 2021-10-31 14:40:49 · 131 阅读 · 0 评论 -
SpringSecurity前后端分离
pom文件 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.4.RELEASE</version> </parent> <dependencies&g原创 2021-09-05 22:12:18 · 167 阅读 · 0 评论 -
springboot学习笔记_08_任务
任务异步任务@RestController@RequestMapping("/async")public class AsyncController { @Autowired private AsyncService asyncService; @RequestMapping("/hello") public String hello(){ asyncService.hello(); return "ok"; }}@S原创 2021-02-01 22:41:49 · 80 阅读 · 0 评论 -
springboot学习笔记_07_swagger2
前后端分离后端时代前端只用静态页面jsp,模板引擎等后端处理开发前后端分离时代前端vue/react工程化前端控制层,视图层伪造后端数据,无需后端也可直接运行调用后端API接口,json格式交互可以部署在不同的服务器后端后端控制层,服务层,数据访问层(controller,service,dao,entity)springboot+mybatisswagger显示API接口格式,postman工具测试swagger号称时间上最流行的A原创 2021-02-01 22:30:54 · 56 阅读 · 0 评论 -
springboot学习笔记_06_SpringSecurity
Spring Security权限管理功能权限访问权限菜单权限替代拦截器过滤器权限管理框架spring securityshiro<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId></dependency&g原创 2021-02-01 22:14:31 · 119 阅读 · 1 评论 -
springboot学习笔记_05_web开发
web开发导入静态资源webjars不推荐前后端分离resourcesresourcesstaticpublic优先级resources一般放上传的文件static静态资源、图片public公共使用的文件# 自定义静态资源路径# 会覆盖原有的默认路径spring.mvc.static-path-pattern=/xxx/**首页index.html默认首页定制//templates目录下的所有页面需原创 2021-02-01 22:08:54 · 153 阅读 · 0 评论 -
springboot学习笔记_04_配置文件
配置文件application.propertieskey=value形式application.ymlymal语法多环境配置多环境application.propertiesapplication-test.propertiesapplication-dev.propertiesapplication-prod.properties指定第一种(配置文件中指定)spring.profiles.active=dev第二种(运行时指定)java原创 2021-02-01 21:04:46 · 51 阅读 · 0 评论 -
springboot学习笔记_03_注解
注解@Configuration配置类//配置类本身也是组件//Configuration(proxyBeanMethods=true)//proxyBeanMethods:代理bean方法,默认为true@Configurationpublic class MyConfig{ //给容器添加组件,默认以方法名作为组件id,返回类型作为组件类型,返回值就是组件在容器中的实例 //默认单实例 @Bean("user") public User user(){原创 2021-01-31 22:01:53 · 101 阅读 · 0 评论 -
springboot学习笔记_02_依赖管理&&自动配置
依赖管理&&自动配置依赖管理<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.4.RELEASE</version></parent><parent> <原创 2021-01-31 21:42:49 · 130 阅读 · 0 评论 -
springboot学习笔记_01_快速上手
SpringBootHelloWorld项目pom.xml<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.4.RELEASE</version></parent><dependenci原创 2021-01-31 21:33:41 · 140 阅读 · 0 评论 -
其他-JavaWeb构建-springboot+mybatis+druid
pom.xmlspringbootmysqlmybatismybatis-generatorlog4jdruid&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;project xmlns="http://maven.apache.org/POM/4.0.0"原创 2018-12-23 19:29:18 · 156 阅读 · 0 评论