码迷,mamicode.com
首页 >  
搜索关键字:Springboot    ( 9666个结果)
Springboot vue.js html 跨域 前后分离 shiro权限 集成代码生成器
本代码为 Springboot vue.js 前后分离 + 跨域 版本 (权限控制到菜单和按钮) 后台框架:springboot2.1.2+ mybaits+maven+接口 前端页面:html +vue.js 形式 jquery ajax 异步跨域 json 格式数据交互 前后分离,前后台分开部署 ...
分类:编程语言   时间:2019-11-17 10:52:54    阅读次数:106
Springboot学习~7:SpringMVC自动配置
Spring MVC auto configuration Spring Boot 自动配置好了SpringMVC 以下是SpringBoot对SpringMVC的默认配置: ==(WebMvcAutoConfiguration)== Inclusion of and beans. 自动配置了Vie ...
分类:编程语言   时间:2019-11-17 10:20:30    阅读次数:69
springboot - 映射HTTP Response Status Codes 到 静态 HTML页面
1、总览 2、代码 1)、pom.xml <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </depend ...
分类:编程语言   时间:2019-11-16 21:55:00    阅读次数:173
(007)Spring Boot之自动装配接口Condition、对应注解Conditional及其一些默认实现
1、通过实现Condition接口和添加Conditional注解实现springboot的自动装配 有时候我们需要根据条件自动装配一些bean,比如根据当前运行的文件是utf-8还是gbk编码来绝定装配哪个bean,请看下面示例,装配了utf8的bean pom.xml <?xml version ...
分类:编程语言   时间:2019-11-16 21:14:32    阅读次数:61
SpringBoot-Helloworld
SpringBoot是建立在Spring基础之上,通过最少的Spring前期配置使应用程序尽快启动并运行。学习SpringBoot之前,预先掌握使用Spring、Maven工具。 特点: 嵌入式Servlet容器,不用打包WAR jar与版本自动管理 应用运行跟踪与指标状况 ....... 创建工程 ...
分类:编程语言   时间:2019-11-16 19:33:20    阅读次数:79
SpringBoot Web篇(二)
摘要 继上一篇 "SpringBoot Web篇(一)" 文件上传 当我们服务器需要接收用户上传的文件时,就需要使用 作为参数接收文件。如下: 当上传多文件时,使用 进行接收,或是多个 , 这个需要根据表单上传的方式决定。 如果表单上传方式如下:则使用 : 如果表单上传方式如下:则使用多个 : 路径 ...
分类:编程语言   时间:2019-11-16 19:20:04    阅读次数:69
springboot中@Mapper和@Repository的区别
@Mapper和@Repository是常用的两个注解,两者都是用在dao上,两者功能差不多,容易混淆,有必要清楚其细微区别; 区别: @Repository需要在Spring中配置扫描地址,然后生成Dao层的Bean才能被注入到Service层中:如下,在启动类中配置扫描地址: @SpringBo ...
分类:移动开发   时间:2019-11-16 17:53:50    阅读次数:721
springboot集成elasticsearch
spring cloud,其实一样的,我单独加一个模块做搜索 添加pom 完整的pom bootstrap.yml配置 添加entity实体 添加索引的设置,索引创建,分词,索引映射 在resource下添加两个文件 search-mapping.json search-setting.json 添 ...
分类:编程语言   时间:2019-11-16 17:44:08    阅读次数:84
springboot中添加事务注解
1.首先在service层中的方法前添加@Transactional @Service public class UserService { @Autowired private UserMapper userMapper; public List<User> queryAll(){ System. ...
分类:编程语言   时间:2019-11-16 17:37:20    阅读次数:66
SrpingBoot入门到入坟04-配置文件
SpringBoot使用一个全局的配置文件,名称是固定,作用就是修改SpringBoot自动配置的默认值。 *application.properties *application.yml 先看看两者的写法,以修改默认端口为例: application.properties: application ...
分类:其他好文   时间:2019-11-16 17:33:19    阅读次数:55
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!