现代计算机2024,Vol.30Issue(18) :104-107.DOI:10.3969/j.issn.1007-1423.2024.18.019

一种动态文本解析方式的实现

The implementation of a dynamic text parsing method

张胜楠
现代计算机2024,Vol.30Issue(18) :104-107.DOI:10.3969/j.issn.1007-1423.2024.18.019

一种动态文本解析方式的实现

The implementation of a dynamic text parsing method

张胜楠1
扫码查看

作者信息

  • 1. 湖北轻工职业技术学院信息工程学院,武汉 430000
  • 折叠

摘要

互联网技术发展日新月异,需要手工完成的文本导入业务场景被自动化系统替代,但往往无法灵活导入复杂多变的文本样式或开发工作量较大.为了解决以上问题,通过Java反射技术、自定义类注解和方法注解,结合FEL计算引擎配置表达式,实现文本灵活动态的解析以及后续入库操作,而且添加新的业务导入模块时,基本无需更改或添加新的代码,大大减少了程序员开发的工作量,提高了复用性.

Abstract

Internet technology is developing rapidly,and the text import business scenarios that need to be completed manu-ally are replaced by automated systems,but they are often unable to flexibly import complex and changeable text styles or have large development workload.In order to solve the above problems,Java reflection technology,custom class annotations,and method annotations are used,combined with the FEL calculation engine to configure expressions,to achieve flexible and dynamic text pars-ing and subsequent warehousing operations.Moreover,when adding new business import modules,there is basically no need to change or add new code,greatly reducing the workload of programmer development and improving reusability.

关键词

Java反射/自定义注解/文本解析

Key words

Java reflection/custom annotations/text parsing

引用本文复制引用

出版年

2024
现代计算机
中大控股

现代计算机

影响因子:0.292
ISSN:1007-1423
段落导航相关论文