The error messages indicate that there are missing packages and symbols in your Java code. Here is a summary of the errors:

  1. In IndexController.java:

    • The packages "org.springframework.stereotype" and "org.springframework.web.bind.annotation" are missing.
    • The symbol "Controller" and "GetMapping" cannot be found.
  2. In LoginController.java:

    • The packages "org.apache.ibatis.annotations", "org.springframework.beans.factory.annotation", "org.springframework.stereotype", and "org.springframework.web.bind.annotation" are missing.
    • The symbols "Controller", "RestController", "RequestMapping", and "Autowired" cannot be found.
  3. In User.java:

    • The package "lombok" is missing.
    • The symbol "Data" cannot be found.
  4. In IUserDao.java:

    • The package "org.springframework.stereotype" is missing.
    • The symbol "Repository" cannot be found.
  5. In Demo1Application.java:

    • The packages "org.mybatis.spring.annotation", "org.springframework.boot", "org.springframework.boot.autoconfigure", "org.springframework.stereotype", and "org.springframework.web.bind.annotation" are missing.
    • The symbols "Controller", "MapperScan", and "SpringBootApplication" cannot be found.
    • The symbol "RequestMapping" cannot be found in the class "Demo1Application".
    • The variable "SpringApplication" cannot be found.
  6. In Pages.java and Result.java:

    • The package "lombok" is missing.
    • The symbol "Data" cannot be found.
  7. In LoginModelImpl.java:

    • The packages "org.springframework.beans.factory.annotation" and "org.springframework.stereotype" are missing.
    • The symbol "Component" and "Autowired" cannot be found.
  8. In LoginServiceImpl.java:

    • The packages "org.apache.commons.lang3", "org.springframework.beans.factory.annotation", and "org.springframework.stereotype" are missing.
    • The symbol "Service" and "Autowired" cannot be found.
    • The method "getUserName()" and "getPassword()" cannot be found in the class "User".
    • The variable "StringUtils" cannot be found.

To resolve these errors, make sure you have the correct dependencies and packages imported in your code.

Informationjava Errors occurred while compiling module demo1Informationjavac 180_161 was used to compile java sourcesInformation202376 826 - Build completed with 48 errors and 0 warnings in 1 s 380 ms

原文地址: https://www.cveoy.top/t/topic/hNlS 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录