随笔分类 - spring boot——从入门到实战
摘要:package com.test.controller; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bin
        阅读全文
                
                    posted @ 2022-05-15 18:36  
小白龙白龙马
    
                
            
摘要:package com.test.controller; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bin
        阅读全文
                
                    posted @ 2022-05-15 18:23  
小白龙白龙马
    
                
            
摘要:package com.test.controller; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bin
        阅读全文
                
                    posted @ 2022-05-15 18:06  
小白龙白龙马
    
                
            
摘要:package com.test.controller; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bin
        阅读全文
                
                    posted @ 2022-05-15 17:57  
小白龙白龙马
    
                
            
摘要:<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc
        阅读全文
                
                    posted @ 2022-05-15 17:51  
小白龙白龙马
    
                
            
摘要:package com.test.controller; import com.test.controller.model.StudentProperties; import org.springframework.beans.factory.annotation.Autowired; import
        阅读全文
                
                    posted @ 2022-05-15 13:17  
小白龙白龙马
    
                
            
摘要:package com.test.controller.model; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.C
        阅读全文
                
                    posted @ 2022-05-14 18:13  
小白龙白龙马
    
                
            
摘要:import org.springframework.beans.factory.annotation.Autowired;import org.springframework.core.env.Environment;
        阅读全文
                
                    posted @ 2022-05-14 17:17  
小白龙白龙马
    
                
            
摘要:一、server.servlet.context-path配置的作用 定义: server.servlet.context-path= # Context path of the application. 应用的上下文路径,也可以称为项目路径,是构成url地址的一部分。 server.servlet
        阅读全文
                
                    posted @ 2022-05-14 16:34  
小白龙白龙马
    
                
            
摘要:http://localhost:8080/12 http://localhost:8888/12
        阅读全文
                
                    posted @ 2022-05-14 15:47  
小白龙白龙马
    
                
            
摘要:关闭banner: application.properties文件配置如下: spring.main.banner-mode = off
        阅读全文
                
                    posted @ 2022-05-14 15:26  
小白龙白龙马
    
                
            
摘要:package com.test; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.s
        阅读全文
                
                    posted @ 2022-05-14 14:48  
小白龙白龙马
    
                
            
摘要:spring boot应用通常都有一个名为*Application的程序入库,该入口类需要使用spring boot的核心注解 @SpringBootApplication 标注为应用的启动类; 另外该入口类拥有一个标注的java应用程序的main方法,在main方法中通过 “ SpringAppl
        阅读全文
                
                    posted @ 2022-05-14 14:37  
小白龙白龙马
    
                
            
摘要:<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.9.RELEASE</version> </parent> <d
        阅读全文
                
                    posted @ 2022-05-14 13:49  
小白龙白龙马
    
                
            
摘要:IDEA创建Spring boot项目方法一:Maven archetype[原型] 方法一:使用“Maven-archetype-webapp”原型创建Springboot项目 新建maven项目。File>New>Project>Maven>Create from archetype>Maven
        阅读全文
                
                    posted @ 2022-05-14 13:37  
小白龙白龙马
    
                
            
 
                    
                
 浙公网安备 33010602011771号
浙公网安备 33010602011771号