change config

use ResourceConfig
use servlet3