sivaprasadreddy / generator-springboot Goto Github PK
View Code? Open in Web Editor NEWYeoman based Spring Boot Microservice generator
Home Page: https://www.npmjs.com/package/generator-springboot
License: MIT License
Yeoman based Spring Boot Microservice generator
Home Page: https://www.npmjs.com/package/generator-springboot
License: MIT License
Current release process is manual which should be automated
When creating entities with CamelCase scheme, the @Table
entity is created with an improper naming scheme.
For eg. when issuing
yo springboot:controller ShoppingCart --base-path /api/shoppingcart
, then entity class has @Table(name = "shopping carts")
which causes an InvalidDataAccessResourceUsageException when running the tests
I have tried to create Controller with name Order, it has created class files correctly but the import statements in controller and service class are wrong and pointing to customer package.
Expectation : import statements of entities, Service and Respository in controller should be pointing to correct path.
Below are the properties which needs to be adjusted as per maven project
Affected Branch : 0.1.1
Glad that we now have pagination for entities, but I think the setting the page number on response will lead to confusion as the page number get increment on response.
This may lead to confusion as the we make the request for the first page, with index 0 and is returned the pageNumber 1. this is quite evident in the controller test where we make requires for 0th page and get returned the page with pageNumber 1,
Can we have a look into this?
It might be of value to liquibase users to be able to write their migration in whatever format they are used to
Also annotate with @NestedConfiguration properties for cors configuration else it won't be picked in native images
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are awaiting their schedule. Click on a checkbox to get an update now.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
generators/server/templates/app/docker/docker-compose-elk.yml
docker.elastic.co/elasticsearch/elasticsearch 8.14.3
docker.elastic.co/logstash/logstash 8.14.3
docker.elastic.co/kibana/kibana 8.14.3
generators/server/templates/app/docker/docker-compose-monitoring.yml
grafana/grafana 10.4.5
prom/prometheus v2.53.1
.gitpod.Dockerfile
generators/server/templates/app/Dockerfile
eclipse-temurin 17.0.11_9-jre-focal
eclipse-temurin 17.0.11_9-jre-focal
.github/workflows/build.yml
actions/checkout v4
actions/setup-node v4
.github/workflows/docs.yml
actions/checkout v4
actions/setup-python v5
generators/server/templates/app/.github/workflows/gradle.yml
actions/checkout v4
actions/setup-java v4
generators/server/templates/app/.github/workflows/maven.yml
actions/checkout v4
actions/setup-java v4
generators/server/templates/gradle/gradle.properties
generators/server/templates/gradle/code-quality.gradle
generators/server/templates/gradle/owasp.gradle
generators/server/templates/gradle/settings.gradle
generators/server/templates/gradle/build.gradle
generators/common/files/gradle/gradle/wrapper/gradle-wrapper.properties
gradle 8.9
generators/common/files/maven/.mvn/wrapper/maven-wrapper.properties
maven 3.9.8
package.json
chalk 4.1.2
lodash 4.17.21
shelljs 0.8.5
yeoman-environment 3.19.3
yeoman-generator 5.10.0
chai 5.1.1
fs-extra 11.2.0
mocha 10.6.0
sinon 17.0.1
yeoman-assert 3.1.1
yeoman-test 6.3.0
jcenter is about to sunset in may 2021, I know that there is a huge dependency for gradle plugins on jcenter. We should slowly migrate to mavencentral
That will be nice to be able to specified application name as option in CLI usage :
yo springboot myservice
Create infrastructure to create the repository slice testing.
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Location: renovate.json
Error type: Invalid JSON (parsing failed)
Message: Syntax error: expecting end of expression or separator near "labe
Formatting the templates as per google java format manually is a painful process especially when rendering something conditionally. So, a better approach could be running google java format goal after project code generation depending on selected build tool.
I have used your generator as a base and have made some customization to address to organizational needs. I tested it locally using npm link and it worked as expected.
Committed the changes in my github repo. Now post taking the pull from git and running it i don't see my changes reflecting.
Please help!!
we need to make changes as per this post for supporting AWS 2.3
Observability is changed in spring boot 3 using micrometer. Add support for the same
Installed all the prerequisites and when I try to create a new project using yo springboot
command, I get an error
# yo springboot
/usr/lib/node_modules/yo/node_modules/conf/index.js:128
throw err;
^
Error: EACCES: permission denied, open '/root/.config/insight-nodejs/insight-yo.json'
at Object.openSync (fs.js:440:3)
at Object.readFileSync (fs.js:342:35)
at Conf.get store [as store] (/usr/lib/node_modules/yo/node_modules/conf/index.js:108:18)
at Conf.get (/usr/lib/node_modules/yo/node_modules/conf/index.js:47:27)
at Insight.get optOut [as optOut] (/usr/lib/node_modules/yo/node_modules/insight/lib/index.js:52:22)
at Object.<anonymous> (/usr/lib/node_modules/yo/lib/cli.js:205:48)
at Module._compile (internal/modules/cjs/loader.js:971:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1011:10)
at Module.load (internal/modules/cjs/loader.js:822:32)
at Function.Module._load (internal/modules/cjs/loader.js:730:14) {
errno: -13,
syscall: 'open',
code: 'EACCES',
path: '/root/.config/insight-nodejs/insight-yo.json'
}
Changed the permission to 777 for the file
# chmod 777 /root/.config/insight-nodejs/insight-yo.json
# ls -l /root/.config/insight-nodejs/insight-yo.json
-rwxrwxrwx 1 root root 29 Feb 17 13:29 /root/.config/insight-nodejs/insight-yo.json
# cat /root/.config/insight-nodejs/insight-yo.json
{
"clientId": 729298861707
}
Cant even run as sudo
# sudo yo springboot
/usr/lib/node_modules/yo/node_modules/conf/index.js:128
throw err;
^
Error: EACCES: permission denied, open '/root/.config/insight-nodejs/insight-yo.json'
at Object.openSync (fs.js:440:3)
at Object.readFileSync (fs.js:342:35)
at Conf.get store [as store] (/usr/lib/node_modules/yo/node_modules/conf/index.js:108:18)
at Conf.get (/usr/lib/node_modules/yo/node_modules/conf/index.js:47:27)
at Insight.get optOut [as optOut] (/usr/lib/node_modules/yo/node_modules/insight/lib/index.js:52:22)
at Object.<anonymous> (/usr/lib/node_modules/yo/lib/cli.js:205:48)
at Module._compile (internal/modules/cjs/loader.js:971:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1011:10)
at Module.load (internal/modules/cjs/loader.js:822:32)
at Function.Module._load (internal/modules/cjs/loader.js:730:14) {
errno: -13,
syscall: 'open',
code: 'EACCES',
path: '/root/.config/insight-nodejs/insight-yo.json'
}
Support for calling API using rest clients
Options are resttemplate , webclient and declarative clients
Please upgrade the ELK stack to 8.x in docker-compose, There are breaking changes in v7 and V8.
Just upgrading the ELK stack from 6.2.2 to latest version is not working.
You have done cool work.
I would like to fork your project and use that inside our company, but I can not due to missing license.
Github says missing license does not allow me to use your code as a base.
If you willing to let me use the code, add license using this guide.
I'd do it for you, but I have no clue what type of license you would like to have. :)
Thank you!
We need to skip adding below file when Liquibase or flyway is already generated.
model/response/PagedResult.java
WorkAround : When prompted click on overwrite option
Grafana loki is used as an alternative to elk in few organizations. Support for the same in generator
Do you intend to include the generation of DTO's?
Enabling Github's Discussion will help to chat to the owner of repository , instead of raising Issues for all.
Considering the new features introduced in Spring Boot 3.1.0, I have the following things that can clean up our code generation process:
ErrorDetailProblemHandlingControllerAdvice
to GlobalExceptionHandler
and move into com.mycompany.<service>.config
package.application-heroku.properties
, application-local.properties
?Use @DynamicPropertySource like here instead of ApplicationContextInitializer in Junits when using Containers for setting the value in Junit tests example
Also use @testcontainers annotation in conjunction with @container annotation to start the container.
If we need to use the database across all Junits then we need to create ShareContainer like here
Suggest which is better way to handle?
I will submit PR for this
Generator is generating project by default in properties file. Please consider giving option to choose configuration file format.
Create sub-generator to generate JPA entity, repository, service, and controller with CRUD operations.
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.