我想通过以下部署春季启动应用到JBoss 此.它运行良好但SpringBootServletInitializer在1.4.0.RELEASE中已弃用.我应该使用哪一个?
Maven依赖
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.0.RELEASE</version>
</parent>
Run Code Online (Sandbox Code Playgroud)
Java代码
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.web.SpringBootServletInitializer;
@SpringBootApplication
public class DemoApplication extends SpringBootServletInitializer {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
}
Run Code Online (Sandbox Code Playgroud) 当我从根文件夹中使用命令时,我想检查我在项目中使用的react native版本:
D:\Reactnative\Albums>npm view react-native version
0.56.0
Run Code Online (Sandbox Code Playgroud)
版本是0.56.0,不是我已安装的版本,但安装在:
D:\Reactnative\Albums>react-native -v
react-native-cli: 2.0.1
react-native: 0.55.4
Run Code Online (Sandbox Code Playgroud)
这里提到的版本是0.55.4,这是正确的。那么为什么会发生这种冲突呢?
我有一个对象数组,并且上面有重复的值,并且我想合并所有在同一日期创建且具有相同文件名的持续时间
先感谢您 :)
我有很多物体
[
{
fileName: "test.js"
duration: 1500,
createt_at: "2019-07-26T09:57:28.126Z"
},
{
fileName: "test.js"
duration: 1500,
createt_at: "2019-07-26T10:00:28.126Z"
},
{
fileName: "test.js"
duration: 1500,
createt_at: "2019-07-26T09:57:28.126Z"
},
{
fileName: "main.js"
duration: 1500,
createt_at: "2019-07-26T09:57:28.126Z"
},
{
fileName: "main.js"
duration: 3000,
createt_at: "2019-07-28T10:57:28.126Z"
},
{
fileName: "main.js"
duration: 2000,
createt_at: "2019-07-28T11:00:28.126Z"
}
{
fileName: "main.js"
duration: 100,
createt_at: "2019-07-28T09:00:28.126Z"
}
]
Run Code Online (Sandbox Code Playgroud)
对象的输出数组需要像这样:
[
{
fileName: "test.js"
duration: 3000,
createt_at: "2019-07-26"
},
{
fileName: "main.js"
duration: 1500,
createt_at: "2019-07-26"
}, …
Run Code Online (Sandbox Code Playgroud) android ×1
arrays ×1
java ×1
javascript ×1
npm ×1
object ×1
ocr ×1
react-native ×1
spring-boot ×1
tesseract ×1
version ×1