
Spring学习记录
CMCST
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SpringBoot整合Freemarker
1. 搭建SpringBoot基本环境(基于Maven) 2. 导入Freemarker坐标 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-freemarker</artifactId> </dependency> 3. 在文原创 2021-11-28 19:23:17 · 351 阅读 · 0 评论 -
SpringBoot整合JSP
1. 创建SpringBoot环境 1.1 创建空MAVEN项目 1.2 在pom.xml中导入坐标 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.6.0</version> &原创 2021-11-28 13:07:01 · 207 阅读 · 0 评论 -
Server returns invalid timezone. Go to ‘Advanced‘ tab and set ‘serverTimezone‘ property manually.
在IDEA上测试连接mysql数据库出现错误: Server returns invalid timezone. Go to ‘Advanced’ tab and set ‘serverTimezone’ property manually. 即 时区问题 解决方案 在IDEA上测试时url后追加?serverTimezone=GMT原创 2021-11-28 09:43:28 · 481 阅读 · 0 评论 -
SSM基础搭建所需jar包分类
1. Spring 1.1 Spring基础包 分别对应Spring核心容器的4个模块 spring-beans-5.3.3.jar spring-context-5.3.3.jar spring-core-5.3.3.jar spring-expression-5.3.3.jar 1.2 第三方依赖包 Spring的核心容器需要依赖该jar包 commons-logging-1.2.jar 基于1.1与1.2的五个jar包可以简单使用Spring 的 IOC了 1.3.1 AOP # Spring原创 2021-11-27 20:43:59 · 1227 阅读 · 0 评论 -
SSM整合遇到的问题
错误 Could not load properties; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/db/jdbc.properties] 原因: 引入时未加入classpath: <context:property-placeholder location="db/jdbc.properties"/> 解决方式: <context:prop原创 2021-11-27 19:27:05 · 225 阅读 · 0 评论 -
使用jQuery的ajax请求成功,却没有响应
我此处发现的问题是: <input type="submit" value="提交" onclick="func()"> 使用了submit来实现form表单的提交,这会使得页面刷新,ajax返回的信息就会传到另一个页面,success中的模块自然就不会再执行 解决方式 1. button提交 <input type="button" value="提交" onclick="func()"> 2. 改为同步请求,将异步属性设为false,(默认为true)使用submit提交有原创 2021-11-27 11:16:34 · 1116 阅读 · 0 评论 -
org.springframework.web.servlet.PageNotFound.noHandlerFound
Spring MVC错误 org.springframework.web.servlet.PageNotFound.noHandlerFound No mapping found for HTTP request with URI 原因 在配置了静态资源的访问路径<mvc:resources mapping="" location="">后,@Controller就没有被解析,即使<context:component-scan package="">配置在后面也无效,当存在没有匹配原创 2021-11-27 11:05:56 · 4086 阅读 · 1 评论 -
Unable to determine source type <S> and target type <T> for your Converter
在学习Sping MVC中的 自定义转换器 (进行数据绑定)阶段 错误详情 Unable to determine source type <S> and target type <T> for your Converter [com.it.convert.DateConverter]; does the class parameterize those types? 问题 没有指定要实现接口Converter<S,T>的S与T的类型 即 public class Da原创 2021-11-25 10:31:31 · 1780 阅读 · 0 评论