
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 · 345 阅读 · 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 · 199 阅读 · 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 · 476 阅读 · 0 评论 -
SSM基础搭建所需jar包分类
1. Spring1.1 Spring基础包分别对应Spring核心容器的4个模块spring-beans-5.3.3.jarspring-context-5.3.3.jarspring-core-5.3.3.jarspring-expression-5.3.3.jar1.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 · 1221 阅读 · 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 · 221 阅读 · 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 · 1109 阅读 · 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 · 4017 阅读 · 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 · 1766 阅读 · 0 评论