摘要:
1.pom <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.5.2</version> <relativePath 阅读全文
摘要:
依赖 <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version> </dependency> 两种配置log4j的方式: 一定要新建一个log4j.properties文 阅读全文
摘要:
1. 添加config 配置类 package org.fh.config; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springf 阅读全文
摘要:
案例:本文主要描述linux系统执行jar包读取jar包同级目录的外部配置文件方法一:相对路径设置配置文件(1)在jar包同级目录创建配置文件conf.properties并写入配置数据: confData=data1(2)开始写入自动化测试代码 //from www.fhadmin.cn publ 阅读全文
摘要:
特别注意:本代码为 Springboot 工作流 前后分离 + 跨域 版本 (权限控制到菜单和按钮) 后台框架:springboot2.3.0+ Flowable6.5.0+ mybaits+maven+接口 前端页面:html +vue.js 形式 jquery ajax 异步跨域 json 格式 阅读全文
摘要:
添加maven依赖 <dependency> <groupId>e-iceblue</groupId> <artifactId>spire.doc</artifactId> <version>2.2.0</version> </dependency> 转换代码如下 String fromFile = 阅读全文
摘要:
1.声明bean的注解@Component:声明类为组件,没有明确的角色 @Service:用于标注业务逻辑层组件即(service层) @Repository:用于标注数据访问组件即(dao层), @Controller:在控制层使用,声明返回视图 @RestController: 在控制层使用, 阅读全文
摘要:
保存数据到session: @RequestMapping("/login") //java项目 www.fhadmin.cn public String login(HttpServletRequest request, @RequestParam("userName") String userN 阅读全文
摘要:
GateWay之路由转发和过滤 在一个Gateway项目(配置了eureka等组件)中进行配置 server: port: 9006 spring: application: name: zhao-service-gateway cloud: gateway: routes: - id: servi 阅读全文
摘要:
从 Spring Cloud 2020.0.0-M1 开始,Spring Cloud 废除了这种英国伦敦地铁站的命名方式,而使用了全新的 "日历化" 版本命名方式。 官宣如下: https://spring.io/blog/2020/04/17/spring-cloud-2020-0-0-m1-re 阅读全文