Hipster stack for Java developers. Spring Boot + Angular in one handy generator.
"Failed to pull image "brabbit/brabbit": rpc error: code = Unknown desc = Error response from daemon: pull access denied for brabbit/brabbit, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"
Hello guys, How can I set default selected is Facebook in AvRadio react?
Example:
<AvRadioGroup name="radioSocial" required errorMessage="Pick one!" onChange={handleSocial}>
<AvRadio label="Facebook" value={Social.Facebook}/>
<AvRadio label="Youtube" value={Social.Youtube} />
<AvRadio label="Instagram" value={Social.Instagram} />
<AvRadio label="Tiktok" value={Social.Tiktok} />
</AvRadioGroup>
public interface TestingRepository extends JpaRepository<Testing, Long> {
@Query("SELECT aa FROM Testing aa ORDER BY aa.id DESC")
public List<Testing> findLastRecord();
}
I solved myself after some research. Jhipster docker-compose generator does not expose ports. If you want to expose it you can manually alter docker-compose.yml file or related docker file. Sample docker compose file for exposing uaa server database exposed to be accessible from host machine:
`version: '2'
services:
blog:
image: blog
environment:
- _JAVA_OPTIONS=-Xmx512m -Xms256m
- 'SPRING_PROFILES_ACTIVE=prod,swagger'
- MANAGEMENT_METRICS_EXPORT_PROMETHEUS_ENABLED=true
- 'EUREKA_CLIENT_SERVICE_URL_DEFAULTZONE=http://admin:$${jhipster.registry.password}@jhipster-registry:8761/eureka'
- 'SPRING_CLOUD_CONFIG_URI=http://admin:$${jhipster.registry.password}@jhipster-registry:8761/config'
- 'SPRING_DATA_MONGODB_URI=mongodb://blog-mongodb:27017'
- SPRING_DATA_MONGODB_DATABASE=blog
- JHIPSTER_SLEEP=30
- JHIPSTER_REGISTRY_PASSWORD=admin
blog-mongodb:
image: 'mongo:4.2.7'
gateway:
image: gateway
environment:
- _JAVA_OPTIONS=-Xmx512m -Xms256m
- 'SPRING_PROFILES_ACTIVE=prod,swagger'
- MANAGEMENT_METRICS_EXPORT_PROMETHEUS_ENABLED=true
- 'EUREKA_CLIENT_SERVICE_URL_DEFAULTZONE=http://admin:$${jhipster.registry.password}@jhipster-registry:8761/eureka'
- 'SPRING_CLOUD_CONFIG_URI=http://admin:$${jhipster.registry.password}@jhipster-registry:8761/config'
- 'SPRING_DATA_MONGODB_URI=mongodb://gateway-mongodb:27017'
- SPRING_DATA_MONGODB_DATABASE=gateway
- JHIPSTER_SLEEP=30
- JHIPSTER_REGISTRY_PASSWORD=admin
ports:
- '8080:8080'
gateway-mongodb:
image: 'mongo:4.2.7'
store:
image: store
environment:
- _JAVA_OPTIONS=-Xmx512m -Xms256m
- 'SPRING_PROFILES_ACTIVE=prod,swagger'
- MANAGEMENT_METRICS_EXPORT_PROMETHEUS_ENABLED=true
- 'EUREKA_CLIENT_SERVICE_URL_DEFAULTZONE=http://admin:$${jhipster.registry.password}@jhipster-registry:8761/eureka'
- 'SPRING_CLOUD_CONFIG_URI=http://admin:$${jhipster.registry.password}@jhipster-registry:8761/config'
- 'SPRING_DATA_MONGODB_URI=mongodb://store-mongodb:27017'
- SPRING_DATA_MONGODB_DATABASE=store
- JHIPSTER_SLEEP=30
- JHIPSTER_REGISTRY_PASSWORD=admin
store-mongodb:
image: 'mongo:4.2.7'
uaa:
image: uaa
environment:
- _JAVA_OPTIONS=-Xmx512m -Xms256m
- 'SPRING_PROFILES_ACTIVE=prod,swagger'
- MANAGEMENT_METRICS_EXPORT_PROMETHEUS_ENABLED=true
- 'EUREKA_CLIENT_SERVICE_URL_DEFAULTZONE=http://admin:$${jhipster.registry.password}@jhipster-registry:8761/eureka'
- 'SPRING_CLOUD_CONFIG_URI=http://admin:$${jhipster.registry.password}@jhipster-registry:8761/config'
- 'SPRING_DATA_MONGODB_URI=mongodb://uaa-mongodb:27017'
- SPRING_DATA_MONGODB_DATABASE=uaa
- JHIPSTER_SLEEP=30
- JHIPSTER_REGISTRY_PASSWORD=admin
uaa-mongodb:
image: 'mongo:4.2.7'
ports:
- '27017:27017'
jhipster-registry:
extends:
file: jhipster-registry.yml
service: jhipster-registry
jhipster-elasticsearch:
extends:
file: jhipster-console.yml
service: jhipster-elasticsearch
jhipster-logstash:
extends:
file: jhipster-console.yml
service: jhipster-logstash
depends_on:
- jhipster-elasticsearch
jhipster-console:
extends:
file: jhipster-console.yml
service: jhipster-console
depends_on:
- jhipster-elasticsearch
jhipster-import-dashboards:
extends:
file: jhipster-console.yml
service: jhipster-import-dashboards
depends_on:
- jhipster-elasticsearch
`
Hi,
This is my jhipster conifg (actuall kotlin hipster).
<details>
<summary>.yo-rc.json file</summary>
<pre>
{
"generator-jhipster": {
"promptValues": {
"packageName": "com.test.test",
"nativeLanguage": "en"
},
"jhipsterVersion": "6.10.4",
"applicationType": "monolith",
"baseName": "ProjectShoesBackend",
"packageName": "com.test.test",
"packageFolder": "com/test/test",
"serverPort": "8080",
"authenticationType": "jwt",
"cacheProvider": "ehcache",
"enableHibernateCache": true,
"websocket": false,
"databaseType": "sql",
"devDatabaseType": "h2Disk",
"prodDatabaseType": "postgresql",
"searchEngine": false,
"messageBroker": false,
"serviceDiscoveryType": false,
"buildTool": "gradle",
"enableSwaggerCodegen": false,
"jwtSecretKey": "YourJWTSecretKeyWasReplacedByThisMeaninglessTextByTheJHipsterInfoCommandForObviousSecurityReasons",
"embeddableLaunchScript": false,
"useSass": true,
"clientPackageManager": "npm",
"clientFramework": "angularX",
"clientTheme": "minty",
"clientThemeVariant": "dark",
"creationTimestamp": 1606397893626,
"testFrameworks": [],
"jhiPrefix": "jhi",
"entitySuffix": "",
"dtoSuffix": "DTO",
"otherModules": [
{
"name": "generator-jhipster-kotlin",
"version": "1.10.0"
}
],
"enableTranslation": true,
"nativeLanguage": "en",
"languages": ["en"],
"blueprints": [
{
"name": "generator-jhipster-kotlin",
"version": "1.10.0"
}
],
"herokuAppName": "project-shoes-backend",
"herokuDeployType": "git",
"herokuJavaVersion": "1.8"
}
}
</pre>
</details>
##### **JDL for the Entity configuration(s) `entityName.json` files generated in the `.jhipster` directory**
<details>
<summary>JDL entity definitions</summary>
<pre>
entity Brand {
name String
}
entity Shoes {
name String
}
entity Size {
lengthInCm Long,
sizeUS Long,
sizeEU Long
}
relationship OneToMany {
Brand{shoe} to Shoes{brand},
Shoes{sizes} to Size{shoe}
}
</pre>
</details>
##### **Environment and Tools**
openjdk version "1.8.0_272"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_272-b10)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.272-b10, mixed mode)
git version 2.24.3 (Apple Git-128)
node: v14.9.0
npm: 6.14.7
Docker version 19.03.13, build 4484c46d9d
docker-compose version 1.27.4, build 40524192
identical .jhipster/Brand.json
identical .jhipster/Shoes.json
identical .jhipster/Size.json
I have a problem creating entities via the Angular frontend. When creating a Brand entity, it works. But when I try to create a Shoe Entity and link it with a Brand I always recieve a bad request error.
The log shows the following error message:
JSON parse error: Parameter specified as non-null is null: method com.test.test.domain.Brand.setShoes, parameter <set-?>; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Parameter specified as non-null is null: method com.test.test.domain.Brand.setShoes, parameter <set-?>
at [Source: (PushbackInputStream); line: 1, column: 63] (through reference chain: com.test.test.domain.Shoes["brand"]->com.test.test.domain.Brand["shoes"])]
Can somebody help me figure out the problem?
Thanks in advance
Tried to lint /Users/abhinavprakash/Projects/medihelp/bin/src/test/javascript/jest.conf.js but found no valid, enabled rules for this file type and file path in the resolved configuration.
Tried to lint /Users/abhinavprakash/Projects/medihelp/bin/src/test/javascript/protractor.conf.js but found no valid, enabled rules for this file type and file path in the resolved configuration.
1:18 error Require statement not part of import statement @typescript-eslint/no-var-requires
19:23 error 'mapTypescriptAliasToJestAlias' was used before it was defined @typescript-eslint/no-use-before-define
14:19 error 'process' is not defined no-undef
35:5 error Expected method shorthand object-shorthand
41:5 error Expected method shorthand object-shorthand
42:9 error 'browser' is not defined no-undef
44:9 error Do not use "// @ts-ignore" comments because they suppress compilation errors @typescript-eslint/ban-ts-ignore
45:9 error 'browser' is not defined no-undef
46:22 error Require statement not part of import statement @typescript-eslint/no-var-requires
47:32 error Require statement not part of import statement @typescript-eslint/no-var-requires
49:28 error Require statement not part of import statement @typescript-eslint/no-var-requires
51:9 error Do not use "// @ts-ignore" comments because they suppress compilation errors @typescript-eslint/ban-ts-ignore