小编Uğu*_*urt的帖子

'create-react-app'不被识别为内部或外部命令

我试图在Windows PC上使用create-react-app命令设置react app.我已经在我的Mac电脑上使用它了,效果很好.但我遇到了一个问题.这是我在命令行上的步骤.我错过了什么吗?

C:\Windows\system32>cd C:\Users\ugur\Desktop\deneme

C:\Users\ugur\Desktop\deneme>npm init


This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See 'npm help json' for definitive documentation on these fields
and exactly what they do.

Use 'npm install <pkg> --save' afterwards to install a package and
save it as a dependency in the package.json file.

Press ^C at any time to quit.
name: (deneme)
version: (1.0.0)
description:
entry point: (index.js) …
Run Code Online (Sandbox Code Playgroud)

node.js reactjs

24
推荐指数
8
解决办法
3万
查看次数

Spring Transactional TimeOut

我正在尝试使用spring @Transactional注释和timeout参数.我基本上用一些Thread.sleep()代码来测试代码.然后我按照预期得到超时异常.另外,当数据库操作花费的时间超过我的超时时间时,我想获得超时异常.我使用for update select语句在数据库的表中锁定记录.我尝试更新该记录.但程序等待,什么也不做.这是我的示例代码.

@Transactional(rollbackFor = Exception.class, timeout=5)
public void executeService(List<sendData> list) throws Exception{
    List<sendData> newList = gDAO.updateSentList(list);

} 
Run Code Online (Sandbox Code Playgroud)

在这种情况下,程序应该抛出超时异常.我该如何解决?

java spring transactional

4
推荐指数
2
解决办法
2万
查看次数

标签 统计

java ×1

node.js ×1

reactjs ×1

spring ×1

transactional ×1