스프링 얘기가 나와서 sts4부턴 spring legacy project 자체도 지원 안하는 것 같고 github spring-attic에 sts3.9.18 ver.를 설치해도 mvc project는 저는 찾기 힘들더라구요.
인터넷에 나와있는 해결 방법 중
1. xml 파일 core 디렉토리에 넣어봤고
2. spring legacy project 선택 후에 나오는 project 경로 링크 default 빼고 다 지워서 apply 돌려봤고
3. sts 재실행이나 pc 재부팅도 완료한 상태입니다.
혹시 이외에 해결한 경험이나 방법을 알려주세요.
Speaking of spring, it seems that sts4 doesn't support spring legacy project itself, and even if I install sts3.9.18 ver. on github spring-attic, mvc project is hard for me to find.
Among the solutions on the internet
1. put the xml file into the core directory
2. I tried erasing everything except the project path link default that appears after selecting spring legacy project and apply it again.
3. I've also tried re-running STS and rebooting my PC.
Please let me know if you have any other experience or ways to solve this.
Working with legacy Spring projects in STS can indeed be challenging, especially given the limited support for older project structures. Here are a few other approaches that might help:
Check for Project Dependencies in Maven/Gradle: Ensure that your pom.xml (for Maven) or build.gradle file (for Gradle) includes all necessary dependencies, especially if you're working with older Spring versions. Sometimes dependencies are missing or incorrectly configured, which can cause issues during setup in STS.
Update STS Settings for Compatibility: Go to Preferences -> Spring -> Beans Support and ensure that your XML configurations (like applicationContext.xml) are recognized as Spring configuration files. This can help STS identify them correctly and might resolve issues with file recognition.
Use a Compatible Java Version: STS and legacy Spring projects sometimes encounter issues with newer Java versions. Try downgrading to Java 8 or 11, which have better support for legacy Spring applications.
Manually Configure the Dispatcher Servlet in web.xml: If you’re using a traditional XML-based configuration, ensure that your web.xml file has the Dispatcher Servlet properly configured. Sometimes STS doesn’t auto-detect certain XML setups, and manually ensuring the correct XML configuration can help.
Download Example Legacy Projects: You might find it helpful to download a pre-existing Spring Legacy MVC project (often available on GitHub or in older tutorials) and compare it to your setup. This can serve as a template to ensure that everything is configured correctly.
Try Eclipse with Additional Spring Plugins: Since STS is Eclipse-based, you might also try setting up an Eclipse IDE with additional Spring plugins, particularly if certain features aren't working correctly in STS4. This approach could provide a bit more flexibility with plugins.
Let me know if any of these steps bring you closer to a solution, or if you’d like further help troubleshooting one of them.
특히 오래된 프로젝트 구조에 대한 지원이 제한되어 있다는 점을 고려하면 STS에서 레거시 Spring 프로젝트로 작업하는 것은 실제로 어려울 수 있습니다. 다음은 도움이 될 수 있는 몇 가지 다른 접근 방식입니다:
Maven/Gradle에서 프로젝트 종속성을 확인합니다: 특히 이전 Spring 버전으로 작업하는 경우 pom.xml(Maven의 경우) 또는 build.gradle 파일(Gradle의 경우)에 필요한 모든 종속성이 포함되어 있는지 확인하세요. 종속성이 누락되거나 잘못 구성되어 STS에서 설정하는 동안 문제가 발생할 수 있습니다.
호환성을 위해 STS 설정을 업데이트하세요: 환경설정 -> Spring -> Beans 지원으로 이동하여 XML 구성(예: applicationContext.xml)이 Spring 구성 파일로 인식되는지 확인하세요. 이렇게 하면 STS가 해당 파일을 올바르게 식별하고 파일 인식 문제를 해결할 수 있습니다.
호환되는 Java 버전 사용: STS 및 레거시 Spring 프로젝트에서 최신 Java 버전과 관련된 문제가 발생하는 경우가 있습니다. 레거시 Spring 애플리케이션을 더 잘 지원하는 Java 8 또는 11로 다운그레이드해 보세요.
web.xml에서 디스패처 서블릿을 수동으로 구성하세요: 기존 XML 기반 구성을 사용하는 경우 web.xml 파일에 Dispatcher 서브렛이 올바르게 구성되어 있는지 확인하세요. 간혹 STS가 특정 XML 설정을 자동으로 감지하지 못하는 경우가 있는데, 이 경우 올바른 XML 구성을 수동으로 확인하면 도움이 될 수 있습니다.
레거시 프로젝트 예제를 다운로드하세요: 기존 Spring 레거시 MVC 프로젝트(주로 GitHub 또는 이전 자습서에서 제공)를 다운로드하여 설정과 비교하는 것이 도움이 될 수 있습니다. 이는 모든 것이 올바르게 구성되었는지 확인하기 위한 템플릿 역할을 할 수 있습니다.
추가 Spring 플러그인과 함께 Eclipse를 사용해 보세요: STS는 Eclipse 기반이므로, 특히 STS4에서 특정 기능이 제대로 작동하지 않는 경우 추가 Spring 플러그인을 사용하여 Eclipse IDE를 설정해 볼 수도 있습니다. 이 접근 방식은 플러그인을 좀 더 유연하게 사용할 수 있습니다.
이러한 단계를 통해 해결 방법에 가까워지거나 문제 해결에 도움이 더 필요한 경우 알려주세요.