case class Channel(name: String,
deviceIds: List[String])
object Channel {
def copy(c: Channel, newDevicesIds: List[String]) = c.copy(deviceIds = if(c.deviceIds == newDevicesIds) c.deviceIds else c.deviceIds ::: newDevicesIds)
}
def mergeDevices(channels: List[Channel]): Channel = { channels.foldLeft(channels.head) ((r, c) => Channel.copy(r, c.deviceIds)) }
Spring Boot looks for properties using a specific order:
- Command line arguments
- Java System properties (System.getProperties())
- OS environment variables
- JNDI attributes from java:comp/env
- A RandomValuePropertySource that only has properties in random.*
- Application properties outside of your packaged jar (application.properties including YAML and profile variants)
- Application properties packaged inside your jar (application.properties including YAML and profile variants)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../topeka-elements/category-images.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-icons/av-icons.html"> | |
<link rel="import" href="../paper-fab/paper-fab.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> |
When Bad Request happens, most of the problem is in the data serialization and de-serialization. To get the detailed stack trace add the following in the log4j
configuration or similar for logback
.
<logger name="org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod">
<level value="trace"/>
</logger>
Managing ESXi requires one needs to have vSphere ESXi Cli tool to be installed. But, ESXi server itself has commands to manage the guest OS.
- Login to console
ssh root@esxihost
- Get all guest vms
# vim-cmd vmsvc/getallvms
NewerOlder