首页 > 其他分享 >springBoot项目遇到的BUG:Process finished with exit code -1

springBoot项目遇到的BUG:Process finished with exit code -1

时间:2023-02-20 21:24:20浏览次数:40  
标签:code springBoot Process finished exit BUG

 

问题原因:

  在service层调用dao层的时候没有给接口注入值

 解决方法:

  加上@Autowired

 

标签:code,springBoot,Process,finished,exit,BUG
From: https://www.cnblogs.com/gjh2023/p/17138959.html

相关文章

  • 码农饭碗不保——ChatGPT正在取代Coder(转)
    addbyzhj: 让我震惊的是,chatGPT竟然可以理解很复杂的需求描述,还会重构代码,加注释,太牛逼了。 原文链接:https://blog.csdn.net/jarodyv/article/details/129108277版......
  • AtCoder Beginner Contest 289
    E-SwapPlaces题意一个简单无向图,每一个点为黑白色的其中一种。有2个人,x在点1,y在点n。在每一步中,每个人都同时向相邻点移动,要求2人移动到的格子颜色不能相通。......
  • springBoot简要复习总结
    SpringBootSpringBoot的特点1.独立运行的Spring项目SpringBoot可以以jar包的形式独立运行,SpringBoot项目只需通过命令“java–jarxx.jar”即可运行。2.......
  • Conda+VScode配置Python开发环境
    Conda配置与常用指令1、查看conda与Python相关信息查看Python路径wherepython查看conda版本conda--version查看conda详细信息condainfo2、换源更换为清华......
  • SpringBoot的开启缓存@EnableCaching 和 使用缓存@Cacheable
    springboot中的缓存注解支持Spel表达式,因此这里展示常用的SpEL表达式1、开启缓存@EnableCachingimportorg.springframework.boot.SpringApplication;importorg.sp......
  • 征服leecode第一天
    准备开始征服leecode了目前的想法是做leecodehot100两数之和两数之和在最开始拿到的时候想排序,然后遍历,得到结果,但是这里排序会改变下标的值,于是失败。代码如下......
  • 【XSS】springboot 修复 XSS漏洞
    原文参考:https://www.cnblogs.com/kinome/p/12468421.htmlHttpGetBodyimportjavax.servlet.ServletRequest;importjava.io.BufferedReader;importjava.io.IOExcep......
  • LeetCode题2两数相加
    2.两数相加分析题目比较简单,就是两个数相加求和。按照加法思想,同时遍历两个链表,从个位一直加到最高位即可。比如要计算352+99,步骤如下:最低位2+9得11,需进位,个位保留......
  • vscode插件开发记录
    前期准备安装相关依赖npminstall-gyogenerator-code运行yocode创建项目,根据喜好配置文件,我这里选择JavaScript,不过我更建议使用TypeScript开发创建一个电子书工......
  • LeetCode OJ Longest Substring Without Repeating Characters 不重复的最长字串 滑动
    LongestSubstringWithoutRepeatingCharactersGivenastring,findthelengthofthelongestsubstringwithoutrepeatingcharacters.Forexample,thelongest......