![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
星_河
满船清梦漫星河
展开
-
在Spring Boot中读取application.properties
使用 Environment 对象 读取application.properties @Autowiredprivate Environment env;@GetMapping("/property") public String getPropertyValue() { String keyValue = env.getProperty("properties里的属性名"); return keyValue; } 使用 @Valu...原创 2020-11-05 10:06:41 · 1687 阅读 · 0 评论 -
BeanUtils.copyProperties
a,b为对象BeanUtils.copyProperties(a, b);BeanUtils是org.springframework.beans.BeanUtils, a拷贝到bBeanUtils是org.apache.commons.beanutils.BeanUtils,b拷贝到aBeanUtil.convertList2List();copy List...原创 2020-04-13 09:52:02 · 137 阅读 · 0 评论 -
SpringBoot重启项目maven处出现包名下红线问题
把pom里得dependencies注释掉保存右侧依赖就没有。再解除注释红线消除去本地仓库看看 有没有这个包 ,pom中写入相应版本号原创 2019-12-09 15:06:23 · 368 阅读 · 0 评论 -
Content type 'application/x-www-form-urlencoded' not supported
vue传值到后台:export const getSaveTables = postData => { let data = { wjmc: '987', dzrq: '20190202' } return axios.request({ method: 'post', params: {}, ...原创 2019-10-28 11:40:44 · 2005 阅读 · 0 评论 -
Request processing failed报错
Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): my.mapper.UserInfoMapper.findUserInfoByCond解决方案:pom.xml添加<buil...原创 2019-10-17 13:10:56 · 14118 阅读 · 1 评论 -
Error creating bean with name ‘***’: Unsatisfied dependency expressed through field '**‘问题
Error creating bean with name 'userInfoController': Unsatisfied dependency expressed through field 'userInfoService';1.xml配置文件里:<context:component-scan base-package="my" />配置自动扫描2.检查注解...原创 2019-10-17 10:30:12 · 1024 阅读 · 0 评论 -
The origin server did not find a current representation for the target resource解决方案
问题描述tomcat9.0.6启动后可以进入初始页面,可以访问jsp但是action提交后出现报错:404The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.控制台警告:org.springfr...原创 2019-10-17 09:30:52 · 782 阅读 · 0 评论 -
IDEA webxml中webapp报红
把开头的<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd" >这一段去掉。原因是:原创 2019-10-14 15:36:01 · 1110 阅读 · 0 评论 -
org.springframework.web.filter.HttpPutFormContentFilter is deprecated 过时
前端使用PUT发送的请求的时候,需要在web.xml中配置HttpPutFormContentFilter而类HttpPutFormContentFilter不推荐使用。从5.1开始,支持FormContentFilter相同但也处理DELETE。<filter> <filter-name>FormContentFilter</filter...原创 2019-10-14 15:24:12 · 506 阅读 · 0 评论 -
SSM常用资源包
<dependencies> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.1.0</version> <scope...原创 2019-10-14 14:51:11 · 203 阅读 · 0 评论 -
tomcat启动乱码问题
到tomcat/conf/目录下修改logging.properties 找到 java.util.logging.ConsoleHandler.encoding = utf-8这行 更改为 java.util.logging.ConsoleHandler.encoding = GBK原创 2019-10-04 16:29:04 · 84 阅读 · 0 评论 -
SpringJDBC
mysql版本:mysql-8.0.17 jdk 1.8先上pom<!-- https://mvnrepository.com/artifact/org.springframework/spring-jdbc --><dependency> <groupId>org.springframework</groupId> <...原创 2019-10-04 10:04:14 · 116 阅读 · 0 评论