我是Spring Boot的新手.现在,我想添加一个监听器.
例如public MySessionListener implement HttpSessionListener
如何配置SpringApplication?我可以用SpringApplication.addListener()其他方式吗?请.
var temp = '{"name":"abc","0_1":"padforn"}';
console.log(JSON.parse(temp).name);
console.log(JSON.parse(temp).0_1);
Run Code Online (Sandbox Code Playgroud)
该temp变量有两个键.请问如何获取值'0_1'?
我是nodejs的新手.
谁能告诉我如何将所有'\'替换为'/'?谢谢.
我的代码:console.log(process.cwd());
结果:e:\Workspace\WebStorm\Ren\LittleCase
我尝试了以下方法:
console.log(process.cwd().replace('\\','/'));
Run Code Online (Sandbox Code Playgroud)
但是,只有第一个被成功替换.像这样:
e:/Workspace\WebStorm\Ren\LittleCase
Run Code Online (Sandbox Code Playgroud) java ×1
javascript ×1
node.js ×1
openerp-7 ×1
python-2.7 ×1
regex ×1
servlets ×1
spring ×1
spring-boot ×1
spring-mvc ×1