spark-java Questions

2

Solved

I am trying to add a restful api to a java microservice. For this, I am using spark: http://sparkjava.com/documentation.html I've created a very simple class which stands up an api. That class is...
Sow asked 14/10, 2016 at 6:16

8

Solved

I would like to start Spark project in Eclipse using Maven. I've installed m2eclipse and I have a working HelloWorld Java application in my Maven project. I would like to use Spark framework and I...
Et asked 4/3, 2013 at 21:3

1

Solved

My java spark web application using the embedded jetty web server uses port number 4567. Unfortunately this port number is blocked on my computer and don't wish to unblock it. If looked at the spar...
Salta asked 31/8, 2016 at 23:27

1

Solved

Trying to deploy my first app (Back-end). But I meet an error of the type 502 Bad Gateway. 2016/05/03 14:46:14 [error] 2247#0: *19 connect() failed (111: Connection refused) while connecting to up...

2

Solved

I migrated from spring to spark while ago and now I'm stuck at something basic. When I make a POST request sending data in the body I want to have the JAVA object back in the controller.. In spri...
Ignaz asked 26/1, 2015 at 20:48

1

Solved

How can i use custom SSLContext and custom SSLServerSocketFactory in spark-java framework? I've searched in SparkServerImpl but have no idea how to inject sslfactory, any suggestions?
Oriel asked 13/1, 2014 at 5:36

1

Solved

I have a bit similar problem described here: Refresh static files served by SparkJava In my application user can upload the content to one folder that is also served to user with Spark.staticFi...
Conform asked 18/12, 2015 at 15:1

3

Solved

From Spark Java documentation: response.body("Hello"); // sets content to Hello And from Route's JavaDoc: @return The content to be set in the response So what's the difference? Could someone...
Cyte asked 7/2, 2016 at 17:33

2

Solved

Normally, I build a Java web app using Tomcat or Glassfish into a WAR (web app archive file). This file can easily be deployed into AWS through Elastic Beanstalk with a few clicks. The integration ...

2

Solved

I'll try to keep it short. Here's the problem I'm having while trying to understand Spark filters. I'm trying to create a simple app and one of the things that it should do is to create an error re...
Hyozo asked 20/11, 2014 at 23:15

1

Solved

I want to write simple rest api for file download. I cant find docs about it as I understood I need to set mimetype='application/zip' for response, but not clear how to return stream. http://spar...
Zelaya asked 2/12, 2014 at 8:19

1

Solved

I'm trying to make a filter that matches the following URL's: /foo and /foo/* So anything under /foo/ and also the base case /foo I have this filter: Spark.before("/foo/*", (request, response)...
Disorientate asked 29/1, 2015 at 15:13

2

Solved

I'm getting to grips with the Spark Framework and I'm trying to understand the best way of handling exceptions in a uniform way for multiple Routes. At the moment I have a number of Routes which a...
Honorific asked 28/11, 2012 at 12:42

1

Solved

Getting following exception: Exception in thread "main" java.lang.UnsupportedClassVersionError: spark/Route : Unsupported major.minor version 52.0 trying to use spark web application framewo...
Cantrip asked 3/6, 2014 at 13:55

3

I'm trying to start up with http://www.sparkjava.com/, a small Java web framework. The instructions tell you to add it as a Maven dependency (done), but when I mvn package, I get a class def not fo...
Turpitude asked 27/9, 2013 at 16:13

1

I came across a nice small web request framework for Java: Spark. The API looks nice and promising, but the library bundle itself is pretty strange. Leave alone the fact that it proposes using snap...
Circumcision asked 6/8, 2011 at 3:54

© 2022 - 2024 — McMap. All rights reserved.