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
After generating the Spring Boot projects using Kotlin (start.spring.io), the mvn compile gives you an error | |
' | |
java.lang.ClassNotFoundException: org.jetbrains.kotlin.cli.common.messages.MessageCollector | |
' | |
this can fixed by editing the pom.xml | |
replace | |
<properties> | |
<java.version>1.8</java.version> | |
<kotlin.version>1.2.71</kotlin.version> |
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
Date: June 2018 | |
https://github.com/visakha/demo-spring-int-flow | |
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
package com.sample.ecm.job.generic; | |
import org.apache.log4j.*; | |
import org.junit.rules.ExternalResource; | |
import java.io.ByteArrayOutputStream; | |
/** | |
* @author Vamsi Vegi |
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
Assuming you did not include Lombok the generic Spring boot app with WebMvc and H2 and Rest and Data-JPA will work with JDK 10 | |
for a gradle base build when the build.gradle has the setting as below | |
* compile('javax.xml.bind:jaxb-api:2.3.0') | |
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
/** | |
* We have a list of cars identified by Make, | |
* other attributes are name, rating, mileage | |
* The idea is to pick 1 car from each make by applying the below rules in sequence | |
* | |
* Rule 1 : if there is only one car per make: then mark it for Pick: pick = 'onlyOneItem' | |
* Rule 2 : if not Rule 1 then Pick the car with better rating: pick = 'higerRating' | |
* Rule 3 : if not Rule 2 then Pick the car with least mileage: pick= 'lowerMileage' | |
* |