You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SmartGymManagementSystem/GymApplication.java

33 lines
1.3 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.gym;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
@SpringBootApplication
@EntityScan(basePackages = "com.gym.model")
@EnableJpaRepositories(basePackages = "com.gym.repository")
public class GymApplication {
public static void main(String[] args) {
System.out.println("=".repeat(60));
System.out.println("🏋️ 智能健身房管理系统 - Spring Boot");
System.out.println("🚀 正在启动...");
System.out.println("=".repeat(60));
try {
SpringApplication.run(GymApplication.class, args);
System.out.println("\n" + "🎉".repeat(30));
System.out.println("✅系统启动成功!");
System.out.println("\n🌐 访问地址:");
System.out.println(" • 首页http://localhost:8080/");
System.out.println("🎉".repeat(30));
} catch (Exception e) {
System.err.println("\n❌ 启动失败!");
System.err.println("错误:" + e.getMessage());
e.printStackTrace();
}
}
}