在做完项目之后,为了让别人访问到自己的网站,就需要部署前端后端以及数据库,但是在部署的过程中出现了各种问题和困难,本篇主要讲述部署网站所遇到的主要问题以及该如何去解决。
本地运行项目没问题,准备开始打包后端项目,首先出现:
程序包com.xiaoqin.model.entity.talk不存在


将打包好的文件在本地运行,发现出现错误,实体类没有注入进去不能用:
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. 2024-04-01 16:26:14 [ERROR] org.springframework.boot.SpringApplication Application run failed org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'loginController': Unsatisfied dependency expressed through field 'loginService': Error creating bean with name 'loginServiceImpl': Lookup method resolution failed


之前做的项目使用的JDK版本是1.8,现在项目使用的是JDK17,导致运行时出现了版本过低问题。






1、导入本地的数据库后,发现少了几张表,但是本地的又没有问题,
2、导入像😀这样的表情时抛出异常。

打包部署前端项目后,在服务器里连接不上后端,出现跨域问题
