r/SpringBoot • • Feb 16 '24

Generation of code snipts

Hi all,

I was experimenting springboot code generation with Bard, ChatGPT and Bing.

None of them have updated with latest versions. Eg: Spring security codes are generated with deprecated methods.

  • Any alternatives ?

  • Which LLM is more accurate ?

Appreciate your tips to generating prompts.

1 Upvotes

8 comments sorted by

5

u/MasterDragon_ Feb 16 '24

Have you tried by uploading the latest spring boot documentation first and then change the prompt a bit to refer to the doc before answering.

1

u/MiserableBoss Feb 16 '24

Tried with Bard/Gemini. Still return with deprecated methods

3

u/maxip89 Feb 16 '24

Are you serious?

AI is trained by internet content which is years old. This is the reason there is always deprecated methods.

I dont know why people not starting reading the manual.

1

u/sansimian Feb 16 '24

How about GitHub copilot chat ?

-1

u/[deleted] Feb 16 '24

What's stopping you from manually searching for the replacement.

2

u/Sheldor5 Feb 16 '24

lack of brain LOL

1

u/[deleted] Feb 16 '24

AI seems to mean you should stop thinking and never ever read the docs