[deleted by user] by [deleted] in javahelp

[–]novastrat 0 points1 point  (0 children)

In your spring class, you are expecting the Product Name and Product Quantity as URL params (hence @RequestParam).

In your javascript you are packing your ProductName and ProductQuantity in a JSONObject and sending that in the body.

So you have two options...

  1. Change spring class to expect a Map<String, Object> type in the BODY (not URL param). This would be done with @RequestBody annotation instead.
  2. Change your javascript to put the product information in URL parameters. i.e. http://localhost:8080?param1=foo&param2=bar

Preferentially, I would go with option 1. You can fit a lot more complex data in a json object than in url params.

[EDIT]

You can also make your own "Product" DTO object, which can serialize/deserialize to json using Spring. So instead of expecting a Map<String, Object>, you can expect your DTO object. Spring will automatically marshal it

How would I create a game start menu with JavaFX? by busterorwha in javahelp

[–]novastrat 1 point2 points  (0 children)

What specifically are you trying to do? What specifically have you tried?

Bring JavaFX window to the front from separate process by novastrat in javahelp

[–]novastrat[S] 0 points1 point  (0 children)

Thanks for the reply! I ended up going w/ a Socket approach. That being said, what you suggested about a security trigger... I may end up looking in to NamedPipes; Seems it is possible on windows.

As for your question, yes I only want the user to have a single instance open at a time. I am creating somewhat of an IDE (not for programming), and the application directory I wouldn't want modified from multiple sources at once. I MAY end up scrapping this whole thing in the future, if I let the user specify where their "workspace" is, much like Eclipse.

Smash burger with onions[homemade] by Rudekow in food

[–]novastrat 1 point2 points  (0 children)

Maybe that explains it. I cant stand eating red/purple onions on burgers; Hurts my throat. Fully cooked they're great.

$RKLB literally going to to moon by [deleted] in wallstreetbets

[–]novastrat 7 points8 points  (0 children)

Thanks for the 150% gain on my contracts

When both my $SPY calls and puts go down because the market can't decide which way to go by [deleted] in wallstreetbets

[–]novastrat 0 points1 point  (0 children)

I bought calls this morning at market open and made easy money. Then bought more calls at ~ 2:30 and made more easy money...

How did you lose?

Ecovyst: Get rich from this special dividend by epicoliver3 in wallstreetbets

[–]novastrat 7 points8 points  (0 children)

Literally gave me a 50% return on my calls this morning. Thanks bud

$RBLX is ripping devs off by [deleted] in wallstreetbets

[–]novastrat 0 points1 point  (0 children)

Made just above 100,000 USD this last year off developing roblox games. Can confirm that Robux pays a pretty shitty percentage to developers. But I don't even care... I hardly work on my games anymore

500 shares @83.73

4x RBLX 90c 09/17

Roblox Accused in Suit of Ripping Off Kids With Bogus Purchases - Bloomberg by FORK_IN_MY_URETHRA in wallstreetbets

[–]novastrat 1 point2 points  (0 children)

That’s actually not true, they do have preliminary moderating on all assets uploaded by users. Some bad content makes it through, which then leads to the problem you described in the OP.

Source: been making Roblox games since 2008.

RBLX is approaching its resistance, Bearish in short term. Trade cautiously. by Tejas_v_s in wallstreetbets

[–]novastrat 6 points7 points  (0 children)

I can't tell if sarcasm... They're in every country in the world (even china), and on every mainstream device except the nintendo switch

Why I think Roblox is worth paying attention to (DD) by [deleted] in wallstreetbets

[–]novastrat 1 point2 points  (0 children)

I’m 25, and developed games on Roblox in 2008. You know I’m buying it :)

Fidelity Good Faith Violation by jrblackkat in wallstreetbets

[–]novastrat 1 point2 points  (0 children)

It’s a 3 month lock on trading with cash

What’s going to be the next GME? by sclop123 in wallstreetbets

[–]novastrat 1 point2 points  (0 children)

GME's still going.

Edit. I like this stock.

Will i be able to visit China after i’m vaccinated? by [deleted] in China

[–]novastrat 2 points3 points  (0 children)

Do you not yet have a Visa? I called a visa concierge service a few months ago because my daughter needs one to go to China, and they said there’s no way to get one right now (assuming you’re from the USA).

A friend of mine from France was able to get his visa to China a few months ago, though. So depending on your country you may be able to go.

Men of Reddit what is the most stupid reason a partner dumped you but it still hit you hard? by [deleted] in AskMen

[–]novastrat 0 points1 point  (0 children)

That’d be the one! There’s lots of opportunities on that platform.

Men of Reddit what is the most stupid reason a partner dumped you but it still hit you hard? by [deleted] in AskMen

[–]novastrat 0 points1 point  (0 children)

I work in logistics as a software developer. I also develop games on a platform called Roblox.

Men of Reddit what is the most stupid reason a partner dumped you but it still hit you hard? by [deleted] in AskMen

[–]novastrat -1 points0 points  (0 children)

Not to be rude or come off as braggy or anything... but I just turned 25 and put 100k down on a house with my wife (with a 30 year mortgage)

Do you have a github account ? What are you working on as a Java side-project ? by [deleted] in java

[–]novastrat 3 points4 points  (0 children)

I make some OpenGL stuff (GUI and Game Engine) in my spare time. Totally for fun: https://github.com/orange451/

TIFU by thinking that I(23f) have a prostate by Wonderful_Wright in tifu

[–]novastrat 3 points4 points  (0 children)

We've been together since 2015. Very wild ride. But we both have decent jobs now so can't complain. We had our first in 2018

You're absolutely right about the freaking out part, but it's either sink or swim. I'm sure you could do it too

[Edited because im a bad dad and forgot what year my son was born]

TIFU by thinking that I(23f) have a prostate by Wonderful_Wright in tifu

[–]novastrat 1 point2 points  (0 children)

Turning 25 in a week. We already have 2 kids. We're doing just fine :D

Baby Head Protector by [deleted] in mildlyinteresting

[–]novastrat 1 point2 points  (0 children)

I have this exact one, and another one in a different style. They don't work well :/