1、apache-maven-3.3.9 settings.xml配置
<localRepository>D:\20190901\javasource\maven-repository</localRepository>
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
<profile>
<id>jdk-1.8</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
2、File-->>Settings-->>Build,Execution,Deployment-->>Build Tools-->>Maven
Maven home directory:D:\20190901\javasource\apache-maven-3.3.9
User settings file:D:\20190901\javasource\apache-maven-3.3.9\conf\settings.xml
3、springboot2.1.7版本文档地址:https://docs.spring.io/spring-boot/docs/2.1.7.RELEASE/reference/html/
4、
@SpringBootApplication
@SpringBootConfiguration
@Configuration 它属于spring中的一个注解,定义配置类,等价于配置文件
@Component 添加到spring容器中,表示是一个组件
@EnableAutoConfiguration
@AutoConfigurationPackage 将引导类所在包及其子包下面所有的组件添加到spring容器中
@Import({AutoConfigurationImportSelector.class})
1、将所有组件以全类名的方式返回,并且添加到spring容器中
2、会给容器中导入非常多的自动配置类(******AutoConfiguration)就是导入并配置好很多当前项目中所有需要的组件
省去我们手动编写配置然后注入到组件中
@ComponentScan
被该注解标识的类,会被spring容器进行管理
5、@Bean 标识的方法用于向容器中注入组件
1.返回值就是注入容器中的组件对象
2.方法名就是这个组件的id值
6、webjars地址:https://www.webjars.org/
7、热部署
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
手动编译:Ctrl+F9
8、代码的字体设置:File-->>Settings-->>Editor-->>Font
9、纵向分屏:Split Horizontally
10、自动导入变量定义:Ctrl+Alt+V
11、get和set方法:Alt+Insert
springboot
最新推荐文章于 2024-01-14 20:40:42 发布