|
40 | 40 | - Maven Module Project |
41 | 41 | - Integrated mybatis-plus fast dao operation |
42 | 42 | - Quickly generate background code:entity/param/vo/controller/service/mapper/xml |
43 | | -- Integrated swagger2, automatic generation of api documents |
44 | | -- Integrated JWT,Shiro/Spring security permission control |
| 43 | +- Integrated Swagger/Knife4j, automatic generation of api documents |
| 44 | +- Integrated JWT,Shiro permission control |
45 | 45 | - Integrated Redis Cache |
46 | 46 | - Integration HikariCP connection pool, A solid, high-performance, JDBC connection pool at last. |
47 | 47 | - Integrated Spring Boot Admin, real-time detection of project operation |
@@ -276,8 +276,39 @@ spring-boot-plus/generator/src/main/resources |
276 | 276 | └── FooBarMapper.xml |
277 | 277 | ``` |
278 | 278 |
|
279 | | -### 3. Startup Project |
280 | | -> Project Main Class |
| 279 | +### 3. Bootstrap SpringBootAdmin Server |
| 280 | +> SpringBootAdmin Server Main Class,admin module [http://localhost:8000](http://localhost:8000) |
| 281 | +
|
| 282 | +```text |
| 283 | +spring-boot-plus/admin/src/main/java/io/geekidea/springbootplus/admin/SpringBootPlusAdminApplication |
| 284 | +``` |
| 285 | + |
| 286 | +```java |
| 287 | +/** |
| 288 | + * Spring Boot Admin Bootstrap Main Class |
| 289 | + * |
| 290 | + * @author geekidea |
| 291 | + * @date 2020/3/20 |
| 292 | + **/ |
| 293 | +@Slf4j |
| 294 | +@Configuration |
| 295 | +@EnableAutoConfiguration |
| 296 | +@EnableAdminServer |
| 297 | +@SpringBootApplication |
| 298 | +public class SpringBootPlusAdminApplication { |
| 299 | + |
| 300 | + public static void main(String[] args) { |
| 301 | + ConfigurableApplicationContext context = SpringApplication.run(SpringBootPlusAdminApplication.class, args); |
| 302 | + ConfigurableEnvironment environment = context.getEnvironment(); |
| 303 | + String serverPort = environment.getProperty("server.port"); |
| 304 | + log.info("SpringBootAdmin: http://localhost:" + serverPort); |
| 305 | + } |
| 306 | + |
| 307 | +} |
| 308 | +``` |
| 309 | + |
| 310 | +### 4. Startup Project |
| 311 | +> Project Main Class,bootstrap module [http://localhost:8888](http://localhost:8888) |
281 | 312 |
|
282 | 313 | ```text |
283 | 314 | spring-boot-plus/bootstrap/src/main/java/io/geekidea/springbootplus/SpringBootPlusApplication.java |
|
0 commit comments