Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Spring Basics Creating Controllers and Views Serve a Thymeleaf View from a Controller

Aimable RUHUMURIZA
Aimable RUHUMURIZA
1,806 Points

I'm getting error every time I try to resolve this exercise. Apparently it coming from the exercise itself. Can you help

JavaTester.java:66: error: illegal start of expression package com.teamtreehouse.contactmgr.controller;

com/teamtreehouse/contactmgr/controller/ContactController.java
package com.teamtreehouse.contactmgr.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class ContactController {
    @RequestMapping("/")
    public String home() {
      return "index";
    }
}

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there, Aimable RUHUMURIZA ! Yes, it seems there is a problem with Java-based challenges right now. This has been reported to Treehouse staff by myself and at least one other moderator. I feel confident that the Support staff is working on this.

That being said, you can skip the challenge by using the white "dots" at the top of the page where the challenge/video is. Clicking any one of these will take you to that section of the course. Don't forget to come back and finish the challenge once everything is working properly again.

Hope this helps! :sparkles: