Skip to content

DenisBuserski/SoftUni-Java-Web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SoftUni Java Web

spring-logo

Projects

Online Dog Store - Puppies Passion
SoftUni Java Web - Mobilebg
SoftUni Java Web - Pathfinder
SoftUni Java Web - Battleships
SoftUni Java Web - Supermarket

Learning materials

Main components:

  • Spring Boot Starters
  • Spring Boot Auto-Configuration
  • Spring Boot Actuator
  • Spring Data

Spring IoC container - Responsible for managing all the beans? Spring bean - An instance of a class managed by the Spring container.

Spring Annotations

  • @SpringBootApplication - Combines @Configuration, @EnableAutoConfiguration and @ComponentScan.

    • @EnableAutoConfiguration - Automatically configures the Spring application based on the classpath and other beans. Eliminates the need for manual configuration.
    • @SpringBootConfiguration/@Configuration - Indicates that a class provides Spring Boot-specific configurations.
    • @ComponentScan - Specifies the packages that Spring should scan for components, configurations, and services. @ComponentScan without arguments tells Spring to scan the current package and all of its sub-packages.
  • @Bean - Declares a method that produces a bean managed by the Spring container. Applies on Method level.

  • @Autowired -

  • @Qualifier - Specifies which bean to autowire when multiple candidates exist.

  • @Primary - Indicates that a bean should be given preference when multiple beans of the same type are available for autowiring.

  • @Component - Generic stereotype for any Spring-managed component. Applies on Class level.

    • @Controller - Returns views.
    • @RestController - Combining @Controller and @ResponseBody. Return data directly in the response body.
    • @Service
    • @Repository
  • @ModelAttribute

  • @CrossOrigin

  • @ResponseBody - The return type of a method should be written directly to the HTTP response body. Commonly returns JSON or XML data.

  • @PathVariable

  • @RequestParam

  • @ConfigurationProperties - Binds and validates external configurations to a configuration object.

  • @Conditional - Includes or excludes parts of the configuration based on certain conditions.

  • @Schedules - Marks a method to be run at periodic intervals, allowing for easy scheduling of tasks within your application.

  • @Value - Injects values into configuration parameters from property files or environment variables.

  • @Profile - Indicates that a component is eligible for registration when certain profiles are active. This is useful for defining environment-specific beans.

  • @SpringBootTest - Used for integration testing of Spring Boot applications.

  • @DataJpaTest - Used for testing JPA repositories.

  • @WebMvsTest - Used for testing Spring MVC controllers.

SoftUni course

Java Web - май 2022

Blogs

Videos

Spring

Session & Cookies

MongoDB

Liquibase

Others

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published