码迷,mamicode.com
首页 >  
搜索关键字:SpringBoot    ( 9666个结果)
SpringBoot使用addCorsMappings配置跨域的坑
什么是跨域问题这里我就不说了,直接说我使用addCorsMappings方法配置跨域时遇到的问题。具体代码如下: public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") .allowedOrigi ...
分类:移动开发   时间:2020-04-06 19:03:34    阅读次数:246
Thymeleaf使用入门
Thymeleaf 是一个跟 Velocity、FreeMarker 类似的模板引擎,它可以完全替代 JSP 。 与SpringBoot完美整合,SpringBoot提供了Thymeleaf的默认配置,并且为Thymeleaf设置了视图解析器,我们可以像以前操作jsp一样来操作Thymeleaf。代 ...
分类:其他好文   时间:2020-04-06 17:53:28    阅读次数:69
springboot查询数据库,js实现二级联动效果
1.数据库设计 实现oracle,mysql不同数据库链接不同的数据类型 2.在跳转到添加页面的时候,去数据库查询parent_id=0的数据,存入modelMap中带入add.html页面 @GetMapping("/add") public String add(ModelMap mmap) { ...
分类:数据库   时间:2020-04-06 17:41:28    阅读次数:193
使用Gradle 构建一个SpringBoot + Spring Security + Mybatisplus的多模块系统
## 目标 - 使用 Gradle 构建一个多模块系统,熟悉脚本- 搭建 SpringBoot ,Spring Security ,Mybatis子模块,实现基本的 Hello World。可以独立运行。 总体步骤:新建父工程(gradle) - 配置maven - 新建多个子工程(SpringBo ...
分类:编程语言   时间:2020-04-06 17:21:36    阅读次数:88
SpringBoot-CRUD+分页与网页灰化(附加一个好玩的小玩意)
SpringBoot总共有3种CRUD+分页:JPA,Mybatis,SQL lite,个人觉得mybatis用起来最方便。 学习教程:https://how2j.cn/k/springboot/springboot-mybatis-crud-pagination/1651.html#nowhere ...
分类:编程语言   时间:2020-04-06 13:26:54    阅读次数:79
springboot-aop的demo
1. pom中添加aop的maven依赖 2. 写一个方法来使用aop 3. 添加一个切面,加上注释 @Aspect @Component 注意在springboot默认设置中,@Component组件必须要在application类的同级或者同级目录的下级包中才能被扫描到 4. 执行 ...
分类:编程语言   时间:2020-04-06 11:36:17    阅读次数:50
SpringBoot+Mybatis+Sharding-JDBC实现分库分表
SpringBoot+Mybatis+Sharding-JDBC实现分库分表 ...
分类:数据库   时间:2020-04-06 11:32:24    阅读次数:81
springboot使用ImportResource注解加载spring配置文件(传智播客代码)
接上篇:springboot使用PropertyResource注解读取指定配置文件的属性(传智播客代码)@ImportResource可以加载多个配置文件 DemoApplication.java package com.atguigu; import org.springframework.bo ...
分类:编程语言   时间:2020-04-05 22:13:05    阅读次数:161
最适合新手入门的SpringCloud教程 6—Ribbon负载均衡「F版本」
SpringCloud版本:Finchley.SR2 SpringBoot版本:2.0.3.RELEASE 源码地址:https://gitee.com/bingqilinpeishenme/Java Tutorials 前言 写博客一个多月了,断断续续的更新,今天有小伙伴催更新了,很高兴,说明我的 ...
分类:编程语言   时间:2020-04-05 20:44:20    阅读次数:84
websocket推送进度条百分比给前台
说明:后台springboot项目 前台vue+element-UI 直接放代码: //后台代码 @Component@ServerEndpoint("/websocket")public class WebSocket { private Session session; private stat ...
分类:Web程序   时间:2020-04-05 20:26:42    阅读次数:228
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!