码迷,mamicode.com
首页 >  
搜索关键字:SpringBoot    ( 9666个结果)
springboot 解决前后端跨域
项目web层创建文件夹名字随便 和controller平级 在文件夹下创建类 名字随意 我是在tools文件夹下创建了一个叫CorsConfig的类,代码如下 ...
分类:编程语言   时间:2018-07-08 23:16:24    阅读次数:216
springboot配置文件
SpringApplication 将从以下位置加载 application.properties 文件,并把它们添加到Spring Environment 中:1. 当前目录下的 /config 子目录。2. 当前目录。3. classpath下的 /config 包。4. classpath根路 ...
分类:编程语言   时间:2018-07-08 21:11:45    阅读次数:169
@SpringBootApplication无法被解析引入
问题描述:@SpringBootApplication无法被解析引入,导致SpringBoot启动类报错 原因分析:springboot的包冲突了所致 解决方案: 需要删掉 repository\org\springframework\boot 目录下的spring-boot-autoconfigu ...
分类:移动开发   时间:2018-07-08 20:12:33    阅读次数:181
Springboot和SpringMVC区别
spring boot只是一个配置工具,整合工具,辅助工具. springmvc是框架,项目中实际运行的代码 Spring 框架就像一个家族,有众多衍生产品例如 boot、security、jpa等等。但他们的基础都是Spring 的ioc和 aop,ioc 提供了依赖注入的容器, aop解决了面向 ...
分类:编程语言   时间:2018-07-08 12:36:42    阅读次数:124
yml的mybatis的sql查看;Mybatis+Springboot 控制台查看日志,Mybatis结合springboot打印日志
1.配置如图 文件为yml 1 mybatis: 2 mapper-locations: classpath:com/springboot/transaction/mapper/*.xml 3 configuration: 4 log-impl: org.apache.ibatis.logging. ...
分类:数据库   时间:2018-07-08 10:44:15    阅读次数:419
SpringBoot的核心注解和配置
一、入口类和SpringBootApplication Spring Boot的项目一般都会有*Application的入口类,入口类中会有main方法,这是一个标准的Java应用程序的入口方法。 @SpringBootApplication注解是Spring Boot的核心注解,它是一个组合注解: ...
分类:编程语言   时间:2018-07-08 10:44:06    阅读次数:542
IntelliJ IDEA 2017版 spring-boot2.0.4+mybatis反向工程;mybatis+springboot逆向工程
一.搭建环境 采用IDE自动建立项目方式 然后,next next,配置导入依赖包 项目就生成了,在项目下导入配置文件GeneratorMapper.xml(项目结构如图所示) 配置文档,建立数据库和数据库连接 1 <?xml version="1.0" encoding="UTF-8"?> <!D ...
分类:编程语言   时间:2018-07-08 10:35:24    阅读次数:947
SpringBoot集成Apache Shiro
笔者因为项目转型的原因,对Apache Shiro安全框架做了一点研究工作,故想写点东西以便将来查阅。之所以选择Shiro也是看了很多人的推荐,号称功能丰富强大,而且易于使用。实践下来的确如大多数人所说简约优美,小巧精悍。 ...
分类:编程语言   时间:2018-07-08 00:30:57    阅读次数:186
springboot 问题
一、@SpringBootApplication 扫包的范围? 所在类的同级包,以及下级包里的所有BEAN。 ...
分类:编程语言   时间:2018-07-07 23:29:31    阅读次数:256
mybatis:在springboot中的配置
## Mybatis 配置mybatis.type-aliases-package=com.xfind.core.entity.xianyumybatis.mapper-locations=classpath:mapper/*.xml#使全局的映射器启用或禁用缓存。mybatis.configura... ...
分类:编程语言   时间:2018-07-07 22:15:54    阅读次数:190
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!