Unable to load image

Jesus christ even ChatGPT 4.0 is absolutely dogshit with deprecated features.

So I'm working on a new project with the Spring version and previously have been relying on ChatGPT for some parts (I use Java Spring+React, so it had a lot of training data for the stuff I do), because it was really good at writing basic textbook template stuff, not good for much else or big projects, but very good for these.

Recently (or not so recently, half a year ago) a lot of Spring Security stuff was removed from the latest versions (now it forces me to use component-based configs:marseynerd:) and it's shockingly dogshit, I'm not surprised he didn't know the solution straight away, afterall it wasn't trained on it, but even after explaining it 3 times (I was just curious if it could do it after explaining it the changes and gave examples), it couldn't even solve the simplest tasks and just tried to use features I explicitely said not use.

idk why I created a seperate thread for this, I just never encountered how shit it is when it faces logic it wasn't trained on, but feel free to make fun of my webdevcel butt anyways:marseygamer:

(looks like too many people don't remember that chatgpt only has training data up to 2021 september, almost 2 years ago. These changes happened in 2022 February.)

53
Jump in the discussion.

No email address required.

I was thinking of subbing to try out GPT4 mainly for CI/CD and perhaps some scripting bullshit. Is it some licensing bullshit for Spring where they were told no dont use it or something?

Jump in the discussion.

No email address required.

No, ChatGPT just doesn't have data past September 2021 and they deprecated it in 2022 February and completely removed it idk when.

Jump in the discussion.

No email address required.

Like did it tell you hey I cant do this because this is no longer in use or it was just being delusional and r-slurred?

Jump in the discussion.

No email address required.

I gave it a very simple example like this:

Below is an example configuration using the WebSecurityConfigurerAdapter that ignores requests that match /ignore1 or /ignore2:

@Configuration

public class SecurityConfiguration extends WebSecurityConfigurerAdapter {

@Override

public void configure(WebSecurity web) {

   web.ignoring().antMatchers("/ignore1", "/ignore2");

}

}

Going forward, the recommended way of doing this is registering a WebSecurityCustomizer bean:

@Configuration

public class SecurityConfiguration {

@Bean

public WebSecurityCustomizer webSecurityCustomizer() {

   return (web) -> web.ignoring().antMatchers("/ignore1", "/ignore2");

}

}

Gave it a very similar use-case, then it either try to extend the ConfigurerAdapter, just changed the annotations but not the logic and other non-solutions. I tried to spoonfeed it, but if I didn't go line-by-line it couldn't solve it.

Jump in the discussion.

No email address required.

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.