---
title: "Comment by Sam Bass on \"How To Deploy A Next.js App Using Spring Boot\" | Hashnode"
description: "I keep getting this error: java: cannot find symbol symbol: variable SpringApplication location: class com.stacktobasics.springbootapp.SpringBootAppApplication"
url: "https://hashnode.com/posts/deploy-nextjs-with-spring-boot/645512a6ce5e292ba1731ab0/comment/651544fb5d5d746448ea5e92"
---

[Discussion](https://hashnode.com/posts/deploy-nextjs-with-spring-boot/645512a6ce5e292ba1731ab0)

Comment [How To Deploy A Next.js App Using Spring Boot](https://hashnode.com/posts/deploy-nextjs-with-spring-boot/645512a6ce5e292ba1731ab0)

[Sam Bass](https://hashnode.com/@sambasswork)

[Sep 28, 2023](https://hashnode.com/posts/deploy-nextjs-with-spring-boot/645512a6ce5e292ba1731ab0/comment/651544fb5d5d746448ea5e92)

I keep getting this error:

java: cannot find symbol symbol: variable SpringApplication location: class com.stacktobasics.springbootapp.SpringBootAppApplication

How can I fix this?
