码迷,mamicode.com
首页 >  
搜索关键字:springframework    ( 4755个结果
SSM+thymeleaf
项目整合中的问题: 1、日志: spring5 不在使用org.springframework.web.util.Log4jConfigListener,不能配置log4j监听器,可以使用log4j2进行日志记录。 2、springmvc整合thymeleaf: 配置文件中添加<property n ...
分类:其他好文   时间:2020-09-17 21:02:44    阅读次数:36
Spring DI 依赖注入有几种方式?
Spring实例化bean的方式Set注入构造器注入静态工厂注入实例化工厂注入案例实操Set注入xml配置(同时spring也提供了对于基本数据类型的set注入方式)<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http
分类:编程语言   时间:2020-09-17 20:24:04    阅读次数:29
高级java开发必须掌握的Spring接口——SmartLifecycle
有些场景我们需要在Spring所有的bean完成初始化后紧接着执行一些任务或者启动需要的异步服务。常见有几种解决方案j2ee注解启动前@PostConstruct销毁前@PreDestroy基于j2ee规范springboot的org.springframework.boot.CommandLineRunnerspringboot特性前面我已经介绍过了springorg.springframewo
分类:编程语言   时间:2020-09-17 19:44:00    阅读次数:35
前后端分离解决CORS跨域问题
一、单个Spring Boot应用使用CorsConfig配置类,实现WebMvcConfigurer解决跨域问题 import org.springframework.context.annotation.Configuration; import org.springframework.web. ...
分类:其他好文   时间:2020-09-17 19:05:01    阅读次数:35
redis使用
简介 在springboot2.0之后,我们使用的jedis被换成了lettuce 使用模板 导入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redi ...
分类:其他好文   时间:2020-09-17 17:29:55    阅读次数:19
常用的文件约束
spring <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-i ...
分类:其他好文   时间:2020-09-17 16:12:25    阅读次数:30
SpringBoot JPA实现增删改查
pom.xml文件 可以拿走直接用 <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependenc ...
分类:编程语言   时间:2020-09-14 19:20:49    阅读次数:50
springboot模板引擎之模板整合之thymeleaf(三)
1在pom.xml中添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> 2在applica ...
分类:编程语言   时间:2020-09-04 17:27:22    阅读次数:48
成功解决 org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalStateException:报错
相信小伙伴们一定遇到过这种错误, 1 八月 26, 2020 11:32:32 上午 org.apache.catalina.core.StandardWrapperValve invoke 2 严重: Servlet.service() for servlet [springmvc] in con ...
分类:编程语言   时间:2020-09-04 17:02:33    阅读次数:52
corePoolSize vs. maxPoolSize
corePoolSizevs.maxPoolSize#原创liululee锅外的大佬3月6日点击左上角蓝字,关注“锅外的大佬”专注分享国外最新技术内容1.概览Spring中的ThreadPoolTaskExecutor是一个JavaBean,提供围绕java.util.concurrent.ThreadPoolExecutor的抽象实例,并作为Spring中org.springframework.
分类:其他好文   时间:2020-09-03 16:52:56    阅读次数:37
4755条   上一页 1 ... 18 19 20 21 22 ... 476 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!