/
itokar98
/
HomeWorkSpringBoot
Обзор
Документация
Войти
/
itokar98
/
HomeWorkSpringBoot
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/main/java/com/example/demo/controller/ProfileController.java
21 строка
574 B
Ilya Tokar
first_commit
26 янв 2026, 01:41
26 янв 2026, 01:41
ac15642
Код
Авторство
О чём код?
package com.example.demo.controller; import com.example.demo.config.SystemProfile; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("/") public class ProfileController { private SystemProfile profile; public ProfileController(SystemProfile profile) { this.profile = profile; } @GetMapping("profile") public String getProfile() { return profile.getProfile(); } }