
SpringBoot
纱布1213
虔诚者。。。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Springboot 静态资源类里静态属性注入
@Component public class ADUserUtils { @Resource private ADConfig adc; private static ADConfig adc1; @PostConstruct public void init() { this.adc1 = adc; } pub原创 2017-08-18 15:50:00 · 5194 阅读 · 0 评论 -
SpringBoot直接读取默认属性文件application的两种方式
第一种 @Configuration public class ADConfig { @Value("${ad.username}") private String adminName; @Value("${ad.password}") private String adminPassword; @Value("${ad.ldapURL}")原创 2017-07-27 11:04:05 · 2552 阅读 · 0 评论 -
SpringBoot 接口开发(httpclient客户端)
服务端 @RestController @RequestMapping("/landary") public class landaryController { @RequestMapping("adduser") public JSONObject addUser(@RequestBody JSONObject userEntity) { Sy原创 2017-08-07 11:34:18 · 15742 阅读 · 1 评论 -
springboot+bootstrap fileupinput 插件实现文件上传
springboot+bootstrap fileupinput 插件实现文件上传原创 2017-11-02 17:03:05 · 4002 阅读 · 1 评论 -
IDEA下springboot打包成jar包和war包,并且可以在外部tomcat下运行访问到
 接着上一章走呗:http://www.cnblogs.com/sxdcgaq8080/p/7712874.html 然后声明一点,下面打包的过程中,scope一直都是使用默认的范围 <!--用于编译jsp--> <dependency> <groupId&a转载 2018-11-16 11:41:44 · 261 阅读 · 0 评论 -
springboot 在读取properties 文件map映射值时会导致无序(以shiro 拦截地址)
properties中shiro的拦截地址为 会导致静态资源被shiro拦截 在yml中 所以推荐使用yml配置文件原创 2018-12-05 15:01:30 · 711 阅读 · 0 评论 -
Springboot发布的POST接口,ajax请求产生跨域问题的解决方法
Spring boot 1.5 使用@CrossOrigin 单个接口跨域直接在方法上添加@CrossOrigin,也可以在controller上添加注解 //@CrossOrigin @RestController @RequestMapping(“smsapp/sendmsg”) public class SendMsgController { @CrossOrigin @PostMappin...原创 2018-12-12 17:06:50 · 1342 阅读 · 0 评论