会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
vwater
博客园
首页
新随笔
联系
订阅
管理
2019年9月4日
Spring之AOP
摘要: 1. 自定义一个注解 2. 被代理类 3. 定义一个切面,包含pointcut和advise 4. Test 测试自定义注解、aoptrain move 在web开发中,都是分层开发,如controller、service、dao层,而这写被注解标注的类的生命周期都是托管给spring容器的,比如c
阅读全文
posted @ 2019-09-04 15:06 vwater
阅读(179)
评论(0)
推荐(0)
2019年2月28日
@RequestParam、@PathVariable、@RequestBody区别
摘要: @RequestParam 用于接收形如: http://ocalhost:9989/lab/sandBox/?id=21 @PathVariable 用于接收形如: http://localhost:9989/datax/jobs/progressinfo/268 @RequestBody 用于P
阅读全文
posted @ 2019-02-28 18:43 vwater
阅读(573)
评论(0)
推荐(0)
java.lang.NoSuchMethodError: org.springframework.core.KotlinDetector.isKotlinReflectPresent
摘要: java.lang.NoSuchMethodError: org.springframework.core.KotlinDetector.isKotlinReflectPresent 解决方案: 因为pom.xml中引入了spring-boot-starter-web ,同时pom.xml也引入了s
阅读全文
posted @ 2019-02-28 16:12 vwater
阅读(14965)
评论(1)
推荐(0)
2019年2月14日
SpringCloud 配置文件 application.yml和 bootstrap.yml区别
摘要: 前言: SpringBoot默认支持properties和YAML两种格式的配置文件。前者格式简单,但是只支持键值对。如果需要表达列表,最好使用YAML格式。SpringBoot支持自动加载约定名称的配置文件,例如application.yml。如果是自定义名称的配置文件,就要另找方法了。可惜的是,
阅读全文
posted @ 2019-02-14 14:38 vwater
阅读(15975)
评论(2)
推荐(1)
2019年2月13日
Cannot access org.springframework.context.ConfigurableApplicationContext
摘要: 新导入项目,提示报 Cannot access org.springframework.context.ConfigurableApplicationContext的错,百度一番,需删除导入项目自动生成的xxx.iml ,然后刷新下右侧maven tab即可,这里记录一下。
阅读全文
posted @ 2019-02-13 13:22 vwater
阅读(19894)
评论(4)
推荐(5)
2019年1月29日
svn迁移到gitlab
摘要: Prerequisites:本机安装git 客户端 迁移: 2. 建立users.txt(存储svn账号与gitlab上账号的关联性) 格式: svn用户名 = git用户名,如: 注意: svn里面有的账号必须要做关联,否则clone会失败。比如上面的user11找不到是哪个开发人员,也不知道它该
阅读全文
posted @ 2019-01-29 10:16 vwater
阅读(6020)
评论(0)
推荐(1)
2019年1月24日
mybatisplus activerecord之mybatisplus entity XXX Not Found TableInfoCache.错误
摘要: ActiverRecord的特点是通过一系列的配置,实体类也具有操作CRUD的功能 使用Mybatisplus activerecord功能,需要进行如下配置: 1. 实体类A继承 com.baomidou.mybatisplus.extension.activerecord.Model 2. 实体
阅读全文
posted @ 2019-01-24 18:03 vwater
阅读(13553)
评论(0)
推荐(2)
@Mapper和@Repository的问题
摘要: 今天用最新的 :: Spring Boot :: (v2.1.2.RELEASE) 2019-01-24 16:17:53.735 INFO 13800 [ main] c.d.v.VwtaterMybatisplusApplication : Starting VwtaterMybatisplus
阅读全文
posted @ 2019-01-24 16:29 vwater
阅读(12149)
评论(0)
推荐(0)
2019年1月23日
jdbc连接问题
摘要: 1. 版本引发的问题 (The server time zone value 'Ãùú±êüñ¼ä' is unrecognized or represents more than one time zone.)<!--MySQL的JDBC驱动包--><dependen
阅读全文
posted @ 2019-01-23 16:24 vwater
阅读(366)
评论(0)
推荐(0)
2019年1月20日
spring-boot-starter-web包,会导致Gateway启动抛出异常
摘要: 最近在用springcloud搭建一个web应用时,发现如果添加不要引入spring-boot-starter-web包,会导致Gateway启动抛出异常,故使用
阅读全文
posted @ 2019-01-20 12:06 vwater
阅读(3160)
评论(0)
推荐(0)
下一页
公告