Questions tagged as 'spring-boot'

1
answer

@OneToOne Spring Boot Jpa

I have the following class: @Entity() @Table(name = "user") public class UserBean extends BaseEntity implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.AUTO) @Column priva...
asked by 06.06.2018 / 11:02
0
answers

Error installing Spring

When I try to install Spring by marketplace and in a first attempt it was possible but I do not change the interface, Eclipse is restarted but I do not take the changes, when entering from the marketplace it indicates as if it were not installed...
asked by 20.10.2017 / 03:37
0
answers

Prevent hibernate from inserting the name of the class in mongoDB

I have a person entity with two simple fields: class Customer { @Id String id String firstName String lastName } by doing a simple save on that entity, using spring mongo repository: repository.save(new Customer(firstName:...
asked by 13.09.2017 / 10:01
0
answers

Autowired on SpringBoot

Good morning everyone. I run into the following problem in a Spring boot project. When I have an @ServiceController I can call all beans @Component and @Autowired that I have. Now if I want to do it from the main method of the @SpringBootAppl...
asked by 25.09.2017 / 00:34
0
answers

Problem / Doubt with Spring Security and Spring Boot

Good morning, I'm working with Spring Boot 1.4.2.RELEASE, Spring Security 4.1.3.RELEASE, and Java 8. For the security configuration I have the following class: @Configuration @EnableWebSecurity public class SecurityConfig extends WebSecurit...
asked by 19.06.2017 / 20:14
0
answers

Modify Value Of A Bean And Collect It In Another Different Class

Good morning everyone (Summary at the end) I'm trying to pass a list of maps from one class to another using a bean with XML configuration: <bean id="listParamJob" class="java.util.ArrayList"> </bean> Here is where I pu...
asked by 30.05.2017 / 10:55
1
answer

Entities in JPA

I am learning to use the Spring Boot framework and I need help to perform entity mapping. This is the Query CREATE TABLE testdb.user_roles ( user_role_id int(11) NOT NULL AUTO_INCREMENT, username varchar(20) NOT NULL, role varchar(2...
asked by 13.04.2017 / 10:05
0
answers

How can I disable CSRF only for my api with spring security? [closed]

I'm creating a project with spring using spring security but I'm having problem only with my api (all controllers are working correctly with csrf). But it seems like the csrf is causing problems to my api, because when I make a request to my api...
asked by 12.03.2017 / 16:11
2
answers

annotations in spring-boot

Reviewing a bit about the concepts of spring-boot, I saw that there is @Component which is divided into 3 @Controller @Service @Repository Reading a little, each one has an end, come to the conclusion that @Controller -->sirve para las...
asked by 26.04.2017 / 16:45
3
answers

Mask port 8080 in url

I'm doing a simple web with spring boot packing it with maven. The .jar that I generated, I have deployed in an instance of AWS. The url is shown with www.geaforestal.net:8080 and of course to leave it as it should be wanted to remove the 808...
asked by 28.07.2016 / 18:03