用的thymeleaf框架,前台html里怎么读取properties文件的值

用的thymeleaf框架,前台html里怎么读取properties文件的值,第1张

可以和读文本文件一样读取

fso = new ActiveXObject("Scripting.FileSystemObject")

f = fso.OpenTextFile("c:\盯洞搜厅fps.properties", ForWriting, true)

或者

用java代码把xx.properties拼成JSON放到那个页凯漏枯面的js代码块里

用system(激带)函数,比如你要打开一个叫a.txt文件虚铅码,差哪你就直接system(a.txt)

#include <stdio.h>

#include <stdlib.h>

void main()

{

system("a.txt")

}


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/tougao/12320046.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-24
下一篇 2023-05-24

发表评论

登录后才能评论

评论列表(0条)

保存