init local code
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package com.yunhai.cms;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cache.annotation.EnableCaching;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
|
||||
/**
|
||||
* 云海平台高校门户 CMS。
|
||||
*
|
||||
* <p>一个服务两副面孔(方案 §3.1):
|
||||
* <ul>
|
||||
* <li>{@code /cms/admin} —— Vue 管理端 SPA(静态资源,编辑人员经 CAS SSO 登录,数据走 {@code /api/*})</li>
|
||||
* <li>{@code /cms/portal/{siteCode}/**} —— Thymeleaf SSR 门户(匿名可访问,SEO 刚需)</li>
|
||||
* </ul>
|
||||
* CAS 只拦 {@code /api/*}(yh.sso.url-pattern),门户必须匿名,勿改配置(方案 §7.1)。
|
||||
*/
|
||||
@EnableCaching
|
||||
@EnableScheduling
|
||||
@SpringBootApplication
|
||||
public class CmsApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(CmsApplication.class, args);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user