Comments (4)
Hello, without more information we unfortunately can't help you.
If you'd like us to spend some time investigating, please take the time to provide a complete minimal sample (something that we can unzip or git clone, build, and deploy) that reproduces the problem.
from spring-boot.
Xin chào, không có thêm thông tin, rất tiếc chúng tôi không thể giúp bạn.
Nếu bạn muốn chúng tôi dành chút thời gian để điều tra, vui lòng dành thời gian để cung cấp một mẫu tối thiểu hoàn chỉnh (thứ mà chúng tôi có thể giải nén hoặc sao chép git, xây dựng và triển khai) tái tạo vấn đề.
I added and have the library in the project, @getter and @Setter added and there is no error but when running it says there is no getter and setter
from spring-boot.
If you'd like us to spend some time investigating, please take the time to provide a complete minimal sample (something that we can unzip or git clone, build, and deploy) that reproduces the problem.
from spring-boot.
@quangthangit I ran the following and got no errors in the terminal.
#!/bin/bash
mkdir demo \
&& cd demo \
&& curl https://start.spring.io/starter.zip \
-d type=maven-project \
-d dependencies=lombok \
-o demo.zip \
&& unzip demo.zip \
&& rm demo.zip \
&& cat <<EOL > src/main/java/com/example/demo/Person.java
package com.example.demo;
import lombok.Getter;
import lombok.Setter;
import lombok.AllArgsConstructor;
@Getter
@Setter
@AllArgsConstructor
public class Person {
private String name;
private int age;
}
EOL
cat <<EOL > src/main/java/com/example/demo/DemoApplication.java
package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
Person person = new Person("John Doe", 30);
System.out.println();
System.out.println("Name: " + person.getName());
System.out.println("Age: " + person.getAge());
System.out.println();
}
}
EOL
./mvnw spring-boot:run
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.3.0)
2024-06-09T18:14:22.195-04:00 INFO 99766 --- [demo] [ main] com.example.demo.DemoApplication : Starting DemoApplication using Java 21.0.3 with PID 99766 (/home/wsl/projects/deleteme/a/demo/target/classes started by wsl in /home/wsl/projects/deleteme/a/demo)
2024-06-09T18:14:22.198-04:00 INFO 99766 --- [demo] [ main] com.example.demo.DemoApplication : No active profile set, falling back to 1 default profile: "default"
2024-06-09T18:14:22.934-04:00 INFO 99766 --- [demo] [ main] com.example.demo.DemoApplication : Started DemoApplication in 1.246 seconds (process running for 1.625)
Name: John Doe
Age: 30
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.204 s
[INFO] Finished at: 2024-06-09T18:14:22-04:00
[INFO] ------------------------------------------------------------------------
from spring-boot.
Related Issues (20)
- Upgrade to Micrometer Tracing 1.3.1
- Upgrade to Neo4j Java Driver 5.21.0
- Make RegistrationConfiguredCondition public HOT 5
- Image building requires builder to specify a stack
- Support base64 in kafka ssl keystore/truststore HOT 4
- Spring Boot 3.3.0 breaks generated SQL statements from a JPQL by putting inconsistent database column name in result set and order by clause leading to SQL Exception. HOT 5
- Image building hangs when builder and buildpack are configured
- Replace custom domain socket implementation with JDK domain socket support
- Upgrade to Byte Buddy 1.14.17
- Upgrade to Dropwizard Metrics 4.2.26
- Upgrade to FreeMarker 2.3.33
- Upgrade to HSQLDB 2.7.3
- Upgrade to Jersey 3.1.7
- Upgrade to Jetty Reactive HTTPClient 4.0.5
- Upgrade to Jetty 12.0.10
- Upgrade to jOOQ 3.18.16
- Upgrade to Maven Help Plugin 3.4.1
- Upgrade to Netty 4.1.111.Final
- Improve readability when listing three pillars of observability
- Fix typos in javadoc of MockServerRestClientCustomizer and MockServerRestTemplateCustomizer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-boot.