spring
文章平均质量分 53
Hui_Hong_TaiLang
这个作者很懒,什么都没留下…
展开
-
Java电话面试题问题,三年工作经验
1.最主要的了解深入spring的IOC和aop和常用的注解2.SpringCloud 的相关的组件3.SpringbootApplication的作用1.分布式事务的节点存在一个节点作为协调者(Coordinator),其他节点作为参与者(Cohorts)。且节点之间可以进行网络通信。有了解分布式事务如何实现?答:分布式事务可以采用分布式锁进行实现,目前zookeeper就提供此锁;分布式锁需要牺牲一定性能去实现,若业务支付最终一致性,那此方法是最佳方案。如在京东下订单,过一会才会告诉你订单原创 2021-03-29 15:17:20 · 1157 阅读 · 0 评论 -
ssm项目整合
第一步框架的搭建加入依赖:<!--版本锁定--> <properties> <spring.version>5.0.2.RELEASE</spring.version> <slf4j.version>1.6.6</slf4j.version> <log4j.version>1.2.12</log4j.version> <mysql.version>5.1.6原创 2021-03-05 10:36:42 · 154 阅读 · 1 评论 -
spring的基于注解的AOP配置案例
配置方法类第一步:导入需要的jar包坐标 <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5.0.2.RELEASE</versio原创 2021-02-08 14:54:29 · 107 阅读 · 0 评论 -
2021-02-05关于spring编写测试类的代码
<--spring框架整合junit的jar包地址--> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>5.0.2.RELEASE</version> <...原创 2021-02-05 11:01:19 · 215 阅读 · 0 评论 -
根据还款日,算出还款日期-
//------------------------------根据还款日,算出还款日期-------------------------- // 约定还款日 smartTranInfoMap.put("BusinessTerm", ctx.getParam("BusinessTerm")); //约定还款日 int BusinessTerm1 = Integer.parseInt(smartTranInfoMap.get("BusinessTerm")); String dd = null;原创 2020-12-31 15:06:40 · 469 阅读 · 0 评论 -
idea中maven无法拉取报:Cannot resolve plugin org.apache.maven.plugins:maven-clean-plugin:2.5
(1)图片问题显示,不管怎么更新和clear本地的maven都不行(2)我的解决方法把自己的maven下载仓库地址,换成阿里的 <mirror> <id>alimaven</id> <mirrorOf>central</mirrorOf> <name>aliyun maven</name> <url>http://maven.aliyun.com/nex原创 2020-09-15 20:16:21 · 1473 阅读 · 0 评论 -
The Server time zone value ‘�й���ʱ��’ is unrecognized or represents more than one time zone
(1)前端请求拿不到数据,报500错误(2)后端报错部分信息(3)解决方案在IntelliJ IDEA中使用mybatis-generator时,配置过plugin后,尝试run,此时出现The Server time zone value ‘�й���ʱ��’ is unrecognized or represents more than one time zone的Exception,原因是当前使用的mysql版本6.0.6驱动过高,且没有配置过time_zone导致,解决办法如下:没修改原创 2020-06-19 09:30:37 · 1073 阅读 · 0 评论