add the viewConfig java code and read me

add the viewConfig java code and read me