摘要
互联网技术发展日新月异,需要手工完成的文本导入业务场景被自动化系统替代,但往往无法灵活导入复杂多变的文本样式或开发工作量较大。为了解决以上问题,通过Java反射技术、自定义类注解和方法注解,结合FEL计算引擎配置表达式,实现文本灵活动态的解析以及后续入库操作,而且添加新的业务导入模块时,基本无需更改或添加新的代码,大大减少了程序员开发的工作量,提高了复用性。
Internet technology is developing rapidly,and the text import business scenarios that need to be completed manually 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 parsing 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.
作者
张胜楠
Zhang Shengnan(Information Engineering College of Hubei Light Industry Technology Institute,Wuhan 430000,China)
出处
《现代计算机》
2024年第18期104-107,共4页
Modern Computer