This is a repository that will contain all of the code for my Spring Boot Introduction course.
danvega / spring-boot-intro Goto Github PK
View Code? Open in Web Editor NEWSpring Boot Intro
Spring Boot Intro
Hi!
I just noticed that the mentioned file is empty, can you please correct it?
Hi All, @cfaddict ,
I'm getting the following errors while running from freshly installed Intellij Idea community edition.
Error:(5, 1) java: package org.springframework does not exist
Error:(12, 2) java: cannot find symbol
symbol: class Service
Error:(17, 10) java: cannot find symbol
symbol: class Autowired
location: class com.therealdanvega.service.AuthorService
/home/ashu/spring-boot-intro/crud/initial/src/main/java/com/therealdanvega/repository/AuthorRepository.java
Error:(5, 43) java: package org.springframework.data.repository does not exist
Error:(9, 43) java: cannot find symbol
symbol: class CrudRepository
/home/ashu/spring-boot-intro/crud/initial/src/main/java/com/therealdanvega/domain/Author.java
Error:(3, 25) java: package javax.persistence does not exist
Error:(4, 25) java: package javax.persistence does not exist
Error:(5, 25) java: package javax.persistence does not exist
Error:(7, 2) java: cannot find symbol
symbol: class Entity
Error:(10, 10) java: cannot find symbol
symbol: class Id
location: class com.therealdanvega.domain.Author
Error:(11, 10) java: cannot find symbol
symbol: class GeneratedValue
location: class com.therealdanvega.domain.Author
/home/ashu/spring-boot-intro/crud/initial/src/main/java/com/therealdanvega/DataLoader.java
Error:(11, 52) java: package org.springframework.beans.factory.annotation does not exist
Error:(12, 38) java: package org.springframework.stereotype does not exist
Error:(19, 2) java: cannot find symbol
symbol: class Component
Error:(25, 10) java: cannot find symbol
symbol: class Autowired
location: class com.therealdanvega.DataLoader
/home/ashu/spring-boot-intro/crud/initial/src/main/java/com/therealdanvega/repository/PostRepository.java
Error:(5, 43) java: package org.springframework.data.repository does not exist
Error:(6, 38) java: package org.springframework.stereotype does not exist
Error:(11, 41) java: cannot find symbol
symbol: class CrudRepository
Error:(10, 2) java: cannot find symbol
symbol: class Repository
/home/ashu/spring-boot-intro/crud/initial/src/main/java/com/therealdanvega/domain/Post.java
Error:(6, 25) java: package javax.persistence does not exist
Error:(7, 25) java: package javax.persistence does not exist
Error:(8, 25) java: package javax.persistence does not exist
Error:(9, 25) java: package javax.persistence does not exist
Error:(10, 25) java: package javax.persistence does not exist
Error:(11, 25) java: package javax.persistence does not exist
Error:(12, 25) java: package javax.persistence does not exist
Error:(13, 25) java: package javax.persistence does not exist
Error:(15, 49) java: package com.fasterxml.jackson.databind.annotation does not exist
Error:(19, 2) java: cannot find symbol
symbol: class Entity
Error:(22, 10) java: cannot find symbol
symbol: class Id
location: class com.therealdanvega.domain.Post
Error:(22, 14) java: cannot find symbol
symbol: class GeneratedValue
location: class com.therealdanvega.domain.Post
Error:(26, 10) java: cannot find symbol
symbol: class Column
location: class com.therealdanvega.domain.Post
Error:(29, 10) java: cannot find symbol
symbol: class Column
location: class com.therealdanvega.domain.Post
/home/ashu/spring-boot-intro/crud/initial/src/main/java/com/therealdanvega/interceptor/BaseInterceptor.java
Error:(3, 26) java: package javax.servlet.http does not exist
Error:(4, 26) java: package javax.servlet.http does not exist
Error:(6, 38) java: package org.springframework.web.method does not exist
Error:(7, 39) java: package org.springframework.web.servlet does not exist
Error:(8, 47) java: package org.springframework.web.servlet.handler does not exist
Error:(10, 38) java: cannot find symbol
symbol: class HandlerInterceptorAdapter
Error:(12, 32) java: cannot find symbol
symbol: class HttpServletRequest
location: class com.therealdanvega.interceptor.BaseInterceptor
Error:(12, 60) java: cannot find symbol
symbol: class HttpServletResponse
location: class com.therealdanvega.interceptor.BaseInterceptor
Error:(12, 106) java: cannot find symbol
symbol: class ModelAndView
location: class com.therealdanvega.interceptor.BaseInterceptor
/home/ashu/spring-boot-intro/crud/initial/src/main/java/com/therealdanvega/controller/AuthorController.java
Error:(3, 52) java: package org.springframework.beans.factory.annotation does not exist
Error:(4, 38) java: package org.springframework.stereotype does not exist
Error:(5, 30) java: package org.springframework.ui does not exist
Error:(6, 47) java: package org.springframework.web.bind.annotation does not exist
Error:(10, 2) java: cannot find symbol
symbol: class Controller
Error:(11, 2) java: cannot find symbol
symbol: class RequestMapping
Error:(23, 28) java: cannot find symbol
symbol: class Model
location: class com.therealdanvega.controller.AuthorController
Error:(29, 28) java: cannot find symbol
symbol: class Model
location: class com.therealdanvega.controller.AuthorController
/home/ashu/spring-boot-intro/crud/initial/src/main/java/com/therealdanvega/Application.java
Error:(3, 32) java: package org.springframework.boot does not exist
Error:(4, 46) java: package org.springframework.boot.autoconfigure does not exist
Error:(6, 2) java: cannot find symbol
symbol: class SpringBootApplication
/home/ashu/spring-boot-intro/crud/initial/src/main/java/com/therealdanvega/config/WebConfig.java
Error:(3, 46) java: package org.springframework.context.annotation does not exist
Error:(4, 32) java: package org.springframework.core does not exist
Error:(5, 57) java: package org.springframework.web.servlet.config.annotation does not exist
Error:(6, 57) java: package org.springframework.web.servlet.config.annotation does not exist
Error:(7, 57) java: package org.springframework.web.servlet.config.annotation does not exist
Error:(12, 32) java: cannot find symbol
symbol: class WebMvcConfigurerAdapter
Error:(11, 2) java: cannot find symbol
symbol: class Configuration
Error:(15, 40) java: cannot find symbol
symbol: class ViewControllerRegistry
location: class com.therealdanvega.config.WebConfig
Error:(22, 37) java: cannot find symbol
symbol: class InterceptorRegistry
location: class com.therealdanvega.config.WebConfig
/home/ashu/spring-boot-intro/crud/initial/src/main/java/com/therealdanvega/controller/HomeController.java
Error:(3, 52) java: package org.springframework.beans.factory.annotation does not exist
Error:(4, 38) java: package org.springframework.stereotype does not exist
Error:(5, 30) java: package org.springframework.ui does not exist
Error:(6, 47) java: package org.springframework.web.bind.annotation does not exist
Error:(10, 2) java: cannot find symbol
symbol: class Controller
Error:(21, 28) java: cannot find symbol
symbol: class Model
location: class com.therealdanvega.controller.HomeController
/home/ashu/spring-boot-intro/crud/initial/src/main/java/com/therealdanvega/service/PostService.java
Error:(5, 52) java: package org.springframework.beans.factory.annotation does not exist
Error:(6, 38) java: package org.springframework.stereotype does not exist
Error:(11, 2) java: cannot find symbol
symbol: class Service
/home/ashu/spring-boot-intro/crud/initial/src/main/java/com/therealdanvega/json/JsonDateSerializer.java
Error:(7, 34) java: package com.fasterxml.jackson.core does not exist
Error:(8, 34) java: package com.fasterxml.jackson.core does not exist
Error:(9, 38) java: package com.fasterxml.jackson.databind does not exist
Error:(10, 38) java: package com.fasterxml.jackson.databind does not exist
Error:(12, 41) java: cannot find symbol
symbol: class JsonSerializer
Error:(17, 38) java: cannot find symbol
symbol: class JsonGenerator
location: class com.therealdanvega.json.JsonDateSerializer
Error:(17, 57) java: cannot find symbol
symbol: class SerializerProvider
location: class com.therealdanvega.json.JsonDateSerializer
Error:(18, 33) java: cannot find symbol
symbol: class JsonProcessingException
location: class com.therealdanvega.json.JsonDateSerializer
/home/ashu/spring-boot-intro/crud/initial/src/main/java/com/therealdanvega/controller/PostController.java
Error:(3, 52) java: package org.springframework.beans.factory.annotation does not exist
Error:(4, 38) java: package org.springframework.stereotype does not exist
Error:(5, 30) java: package org.springframework.ui does not exist
Error:(6, 47) java: package org.springframework.web.bind.annotation does not exist
Error:(7, 47) java: package org.springframework.web.bind.annotation does not exist
Error:(11, 2) java: cannot find symbol
symbol: class Controller
Error:(12, 2) java: cannot find symbol
symbol: class RequestMapping
Error:(24, 28) java: cannot find symbol
symbol: class Model
location: class com.therealdanvega.controller.PostController
Error:(30, 69) java: cannot find symbol
symbol: class Model
location: class com.therealdanvega.controller.PostController
Error:(36, 67) java: cannot find symbol
symbol: class Model
location: class com.therealdanvega.controller.PostController
/home/ashu/spring-boot-intro/crud/initial/src/main/java/com/therealdanvega/config/SecurityConfig.java
Error:(3, 55) java: package org.springframework.boot.autoconfigure.security does not exist
Error:(4, 46) java: package org.springframework.context.annotation does not exist
Error:(5, 43) java: package org.springframework.core.annotation does not exist
Error:(6, 75) java: package org.springframework.security.config.annotation.method.configuration does not exist
Error:(7, 67) java: package org.springframework.security.config.annotation.web.builders does not exist
Error:(8, 72) java: package org.springframework.security.config.annotation.web.configuration does not exist
Error:(13, 37) java: cannot find symbol
symbol: class WebSecurityConfigurerAdapter
Error:(10, 2) java: cannot find symbol
symbol: class Configuration
Error:(11, 2) java: cannot find symbol
symbol: class EnableGlobalMethodSecurity
Error:(12, 2) java: cannot find symbol
symbol: class Order
Error:(16, 34) java: cannot find symbol
symbol: class HttpSecurity
location: class com.therealdanvega.config.SecurityConfig
Following your youtube: https://www.youtube.com/watch?v=5mpHejytgFE
Java 11.0.7 Mac
But cannot launch
Run/Debug nothing happens?
Also don't see Run/Debug annotation above line 9
Spring-Boot Dashboard also cannot launch?
Also live reload is not happening?
cd backend
./mvnw spring-boot:run
I needed to stop and start spring boot server again?
Hi Dan,
your example MVC app on internationalization is not working with Spring Boot 2.1.3, as this version resolves the locale from the browser's accept-language header, which will always override the settings from application.properties.
I had to provide a minimal WebMvcConfigurer to allow changing the locale via a request parameter to get it to work.
`/** */
@configuration
public class WebConfig implements WebMvcConfigurer {
@Bean
public LocaleResolver localeResolver() {
SessionLocaleResolver localeResolver = new SessionLocaleResolver();
return localeResolver;
}
@Override
public void addInterceptors(InterceptorRegistry registry) {
LocaleChangeInterceptor localeChangeInterceptor = new LocaleChangeInterceptor();
localeChangeInterceptor.setParamName("lang");
registry.addInterceptor(localeChangeInterceptor);
WebMvcConfigurer.super.addInterceptors(registry);
}
}`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.