码迷,mamicode.com
首页 >  
搜索关键字:springboot web开发-cors支持    ( 9666个结果
springboot + shiro + cas4.2.7 实战
1. 下载地址 https://github.com/apereo/cas/archive/v4.2.7.zip 2. 解压后, 用intellj idea 打开 3. 执行 gradle build -x test ,打包编译 4. 取消https,能够支持直接http cas.propertie ...
分类:编程语言   时间:2017-03-26 01:10:03    阅读次数:2567
springboot 创建一个项目
1、创建一个maven webapp项目 2、修改pom.xml 2、写一个启动类 3、写一个test控制类 注意: 这里修改springboot的项目名称和端口哈:通过实现EmbeddedServletContainerCustomizer接口 ...
分类:编程语言   时间:2017-03-26 01:09:28    阅读次数:212
springboot 获取hibernate 的 SessionFactory
注入bean application.properties 中配置 直接在代码中注入 例子 ...
分类:编程语言   时间:2017-03-24 23:30:08    阅读次数:3498
springboot 集成shiro
首先看下shiro configuration 的配置,重要部分用红色标出了 自定义realm,用于认证和授权 自定义登出过滤器 自定义权限校验过滤器 ...
分类:编程语言   时间:2017-03-24 23:14:51    阅读次数:819
springboot redis 缓存对象
只要加入spring-boot-starter-data-redis , springboot 会自动识别并使用redis作为缓存容器,使用方式如下 gradle加入依赖 redis configuration 中启用缓存 redis 自定义key生成规则 有时候我们需要 使用 redisTempl ...
分类:编程语言   时间:2017-03-24 22:54:27    阅读次数:930
springboot 自定义Repository
启用 JpaRepositories 在继承了 RdbCommonRepository 接口后, springboot会自动的在相同目录寻找他的实现类,规则是RdbCommonRepository+Impl 类命名规则,也可以手动指定,此处不做多解释,可以自行百度,一般不需要自行指定,使用方式如下 ...
分类:编程语言   时间:2017-03-24 22:47:05    阅读次数:300
springboot thymeleaf和shiro标签整合
这里用的是 thymeleaf 2.x版本的 添加依赖 在shiro的configuration中配置 在html中加入xmlns 例子 ...
分类:编程语言   时间:2017-03-24 21:44:33    阅读次数:2125
springboot 1.5.2 thymeleaf 标签未关闭异常解决办法
原因: Spring Boot项目渲染html的时候,因默认使用是Thymeleaf模板引擎,遇到不闭合标签报错,日常在编写HTML代码时,一般标签都是闭合的,容易忽略的标签包括<meta/>, <link/>, <br/>, <hr/>等等 解决办法: applications.propertie ...
分类:编程语言   时间:2017-03-23 23:34:14    阅读次数:518
springboot 1.5.2 thymeleaf 添加templates 静态资源访问路径
从velocity 模板切换到thymeleaf 后, 默认模板位置为templates , 有时候静态资源方在该目录下会出现访问404错误 解决办法: application.properties 中添加: ...
分类:编程语言   时间:2017-03-23 23:32:15    阅读次数:446
Springboot入门
pom.xml ...
分类:编程语言   时间:2017-03-23 20:00:38    阅读次数:126
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!