Getting error: Route() in Route cannot be applied to String

前端 未结 5 982
栀梦
栀梦 2021-01-05 18:48

I\'m designing a Java based MongoDB app and I\'ve ran into a snag when working with Spark.

package com.tengen;

import spark.Request;
import spark.Response;
         


        
5条回答
  •  时光说笑
    2021-01-05 19:15

    Actually I used spark-core-1.1.1.jar it worked fine for me, may be the newer versions of Spark(version 2.0.0) support some different syntax.So if you are using the latest version then you can follow the example given by Mike or just add spark-core-1.1.1.jar to your classpath your example will work fine

提交回复
热议问题