随笔分类 -  spring boot

1 2 下一页

spring boot 注解
摘要:应用:https://www.cnblogs.com/silyvin/p/9106808.html springboot中的常用注解有:@SpringBootApplication、@Repository、@Service、@RestController、@ResponseBody、@Compone 阅读全文

posted @ 2019-08-15 22:48 silyvin 阅读(199) 评论(0) 推荐(0) 编辑

java springboot 双数据源连接sqlserver mysql
摘要:背景: 测试某台机器能否连接sqlserver 1 首先安装sqlserver 2008: https://www.cnblogs.com/yzl050819/p/8284242.html 首次通过sql server 2008 managerment studio登录服务器为 机器名\SQLEXP 阅读全文

posted @ 2019-07-11 14:04 silyvin 阅读(10480) 评论(0) 推荐(0) 编辑

spring-boot-starter-data-jpa 与 spring-boot-starter-jdbc
摘要:前者默认使用JpaTransactionManager 后者默认使用DataSourceTransactionManager 阅读全文

posted @ 2018-10-22 17:29 silyvin 阅读(3183) 评论(0) 推荐(1) 编辑

拦截器中*与**的区别
摘要:1 *代表只拦截一层,**代表拦截任意层 addPathPatterns("/video/*") http://localhost/video/1就会进入此拦截器,而http://localhost/video/java/1就不会进入 https://blog.csdn.net/cherlshall 阅读全文

posted @ 2018-09-21 14:14 silyvin 阅读(1253) 评论(0) 推荐(1) 编辑

spring boot 2.0 启动监控端点的方法(spring-boot-starter-actuator)
摘要:前言: 在spring boot的旧版本中,监控端点(如/env)是默认开启的,所以只要项目正常启动,就能通过url获取信息。可是在2.0版本以后,由于安全性考虑,除了/health和/info的端点,默认都是不暴露的。 # 关于actuator暴露端点的配置(version: Spring-Boo 阅读全文

posted @ 2018-09-06 14:35 silyvin 阅读(2028) 评论(0) 推荐(0) 编辑

spring boot compiler 版本实践
摘要:一. Maven用户可以继承spring-boot-starter-parent项目来获取合适的默认设置。 该父项目提供以下特性: 1、默认编译级别为Java 1.6,若要编译更高版本,则: <properties> <java.version>1.8</java.version> </proper 阅读全文

posted @ 2018-07-15 21:46 silyvin 阅读(569) 评论(0) 推荐(0) 编辑

spring boot 首次请求Controller慢
摘要:问题描述: 发现,在访问任何一个接口后,接着的接口在短时间内访问速度都很正常。始终是隔一段时间后的第一个接口访问速度很慢。 同样的jre、springboot在他的centos虚拟机上并未出现该问题,所以推测有可能是linux版本差异,或是安全策略配置问题,亦或是linux存在这么一个可以配置默认随 阅读全文

posted @ 2018-07-05 17:24 silyvin 阅读(3716) 评论(0) 推荐(0) 编辑

spring boot 定时任务
摘要:https://www.jianshu.com/p/ef18af5a9c1d项目中,因为使用了第三方支付(支付宝和微信支付),支付完毕后,第三方支付平台一般会采用异步回调通知的方式,通知商户支付结果,然后商户根据通知内容,变更商户项目支付订单的状态。一般来说,为了防止... 阅读全文

posted @ 2018-02-27 14:36 silyvin 阅读(178) 评论(0) 推荐(0) 编辑

springboot 获取hibernate 的 SessionFactory
摘要:注入beanpackage cn.xiaojf;import cn.xiaojf.today.data.rdb.repository.RdbCommonRepositoryImpl;import org.springframework.boot.SpringAppli... 阅读全文

posted @ 2018-02-13 15:13 silyvin 阅读(3706) 评论(0) 推荐(0) 编辑

The multi-part request contained parameter data (excluding uploaded files) that exceeded
摘要:18down votefavorite4I've got a fairly simple Spring Boot web application, I have a single HTML page with a form with enctype="multipar... 阅读全文

posted @ 2017-11-02 12:53 silyvin 阅读(4210) 评论(0) 推荐(0) 编辑

Spring Boot与Spring Security整合后post数据不了,403拒绝访问
摘要:最近在学习Spring security与spring boot的整合,刚开始学习了登录和注销,想自己拓展一下,post一些数据,完成数据库的操作。开始长达一天的查找资料解决问题中!!!首先:403错误,表示资源不可用。服务器理解客户的请求,但拒绝处理它,通常由于服务... 阅读全文

posted @ 2017-10-30 11:31 silyvin 阅读(506) 评论(0) 推荐(0) 编辑

spring boot 及 redis 实现分布式session 实践笔记
摘要:(0)背景Spring-Session实现Session共享入门教程Spring-Session使用的场景?HttpSession是通过Servlet容器进行创建和管理的,在单机环境中。通过Http请求创建的Session信息是存储在Web服务器内存中,如Tomcat... 阅读全文

posted @ 2017-09-27 09:52 silyvin 阅读(770) 评论(0) 推荐(0) 编辑

ajax 跨域 session 及 spring boot分布式session
摘要:未跨域时Ajax请求不同的action时,session保持不变跨域Ajax异步请求时,每次请求都是一个新的session一些帖子供参考http://www.cnblogs.com/interdrp/p/4056525.html http://blog.csdn.net/qq_29845761/ar... 阅读全文

posted @ 2017-09-26 13:28 silyvin 阅读(644) 评论(0) 推荐(0) 编辑

spring data for jpa 实现多条件排序
摘要:例如需要实现一个形如下面的sql: select * from table where a='a' and b='b' order by c asc,d desc; 就是根据两个条件进行排序。 在spring data for jpa 中,存在一个pageable接口... 阅读全文

posted @ 2017-08-16 09:06 silyvin 阅读(478) 评论(0) 推荐(0) 编辑

hinernate ddl 设置
摘要:http://www.cnblogs.com/blogyuan/p/3739661.htmlvalidate 加载hibernate时,验证创建数据库表结构create 每次加载hibernate,重新创建... 阅读全文

posted @ 2017-05-26 22:38 silyvin 阅读(120) 评论(0) 推荐(0) 编辑

spring boot jpa update 操作
摘要:有好多文章介绍了spring boot 博客已经很多了比如说: http://blog.csdn.net/linzhiqiang0316/article/details/52639265 http://blog.csdn.net/linzhiqiang0316/article/details/526... 阅读全文

posted @ 2017-05-10 20:56 silyvin 阅读(434) 评论(0) 推荐(0) 编辑

spring boot 架构问题 时间处理 (映射,时区问题)
摘要:spring.jackson.date-format=yyyy-MM-dd HH:mm:ssspring.jackson.time-zone=GMT+84.12日http://blog.csdn.net/buzaiguihun/article/details/5303... 阅读全文

posted @ 2017-05-09 13:45 silyvin 阅读(232) 评论(0) 推荐(0) 编辑

@JsonFormat和@DateTimeFormat 实践测试
摘要:JsonFormat :出参DateTimeFormate : 入参http://www.iteye.com/problems/53816@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")Date timeline@Dat... 阅读全文

posted @ 2017-05-09 13:22 silyvin 阅读(740) 评论(0) 推荐(0) 编辑

spring jpa CrudRepository save 新建数据没有返回id
摘要:在entity id上➕@GeneratedValue注解http://blog.csdn.net/u012493207/article/details/50846616 JPA的@GeneratedValue注解,在JPA中,@GeneratedValue注解存在... 阅读全文

posted @ 2017-05-09 11:13 silyvin 阅读(3605) 评论(0) 推荐(0) 编辑

spring boot 的 ApplicationContext 及 getbean
摘要:在spring中,我们通过如下代码取得一个spring托管类:ApplicationContext ac = new FileSystemXmlApplicationContext("applicationContext.xml"); ac.getBean("bea... 阅读全文

posted @ 2017-04-26 22:07 silyvin 阅读(524) 评论(0) 推荐(0) 编辑

1 2 下一页
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示