Spring
云碧霄
复述与实践是最好的学习
展开
-
vscode点击ctrl键报错Request textDocument/definition failed.
现象用vscode写java代码的时候突然出现,修复问题点击Ctrl时,输出窗口就打日志,报错Request textDocument/definition failed。我百度唯一的有用线索就是这个报错有一个关于js的报错也是输出的Request textDocument/definition failed。有一个回答就是说"这是一个bug,等待解决"。Spring Boot Tools当...原创 2019-07-03 18:19:48 · 9526 阅读 · 0 评论 -
[转载]Spring下IOC容器和DI(依赖注入) @Bean及@Autowired
Spring下IOC容器和DI(依赖注入) @Bean及@Autowired自动装配bean是什么bean在spring中可以理解为一个对象。理解这个对象需要换一种角度,即可将spring看做一门编程语言,@Bean是spring语言声明对象的标识。spring启动过程中会自动扫描注解,当遇到能产生Bean的注解(见下方列表)后,会将注解的类自动实例化(自动扫描及实例化只进行一次),之后将这...转载 2019-07-03 18:36:18 · 183 阅读 · 0 评论 -
Spring注解@ConfigurationPropertie
@ConfigurationPropertie作用参考的博客springboot中@ConfigurationProperties注解的工作原理@ConfigurationProperties是springboot新加入的注解,主要用于配置文件中的指定键值对映射到一个java实体类上ConfigurationPropertiesBindingPostProcessor这个bean后置处理器...原创 2019-07-03 18:36:04 · 1036 阅读 · 0 评论 -
JdbcTemplate增删改查
package com.fang.spring.jdbcdemo1;import lombok.extern.slf4j.Slf4j;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.jdbc.core.JdbcTemplate;import org.sprin...原创 2019-07-03 18:35:25 · 141 阅读 · 0 评论 -
vscode spring boot配置文件application.properties不提示解决方式
背景因实际的编程环境是jdk1.6,vscode安装了spring boot tools开发后,application.properties无法提示。spring boot tools的功能之一就是提示application.properties,所以问题就在于spring boot tools加载出了问题。编程环境系统环境变量JAVA_HOME是1.6,但setting.json配置了ja...原创 2019-07-03 18:35:07 · 3200 阅读 · 0 评论