后端开发(自己写接口,从0到1)

📅 发布时间:2026/7/17 4:33:08 👁️ 浏览次数:
后端开发(自己写接口,从0到1)
1需要下载IntelliJ IDEA 2025.3.3工具2需要下载MySql数据库图形化软件navicat3遇到问题 pom文件依赖资源爆红解决需要一个一个的放入解决不要一下子复制很多4用postman测试接口不返回问题This generated password is for development use only. Your security configuration must be updated before running your application in production.解决增加安全配置ConfigurationEnableWebSecuritypublicclassSecurityConfig{BeanpublicSecurityFilterChainfilterChain(HttpSecurityhttp)throwsException{http.csrf(csrf-csrf.disable())// 禁用 CSRF开发环境.authorizeHttpRequests(auth-auth.requestMatchers(/user/**).permitAll()// 放行用户接口.anyRequest().authenticated());returnhttp.build();}}