I am using Springboot RPC webserver to run my apis. I have put java.util.Date in Whitelist still throwing error.
Class java.util.Date is not annotated or on the whitelist, so cannot be used in serialization
I created a class
import net.corda.core.serialization.SerializationWhitelist
class RequiredSerializationWhitelist : SerializationWhitelist {
override val whitelist: List<Class<*>> = listOf(java.util.Date::class.java)
}
and put the file net.corda.core.serialization.SerializationWhitelist in \src\main\resources\META-INF\services with following code
com.p2p.RequiredSerializationWhitelist
While deploying Nodes I get
No existing whitelist file found.
Calculating whitelist for current installed CorDapps..
CorDapp whitelist generated in <path>\build\nodes\whitelist.txt
Updating whitelist
Bootstrapping complete!
When I open my Whitelist file in the path given only my Contracts are shown. What am I missing.