java – to set values ​​from the yml configuration

I have class:

@WebServiceClient(name = "${service.name}", targetNamespace = "${service.namespace}", wsdlLocation = "${service.wsdlLocation}")
public class ExampleService extends Service {
    @Value("${service.wsdlLocation}")
    private static String wsdlLocation;
}

It's part of the MVN project that I compile and use from my local Maven repo as a dependency on my other Spring Boot app, which has the yml configuration:

service:
  name: name
  namespace: namespace
  wsdlLocation: wsdlLocation

Is there a way that this ExampleService class uses the configuration of the parent project?

Hooks – Create fields for an existing content type in Drupal8 using the .yml installer

I need to add 2 fields to an existing content type in the drupal8 website, one is text, the other is the file type. I have a multi-site setup, so I have to add a new one for each locale page. Now I've created a module and created an installation file, right Now I can create the fields, but I can not add the file extension to the file type field. can someone help me please?

I have followed this documentation below to create the clipboard.

https://www.drupal.org/docs/8/api/entity-api/programming-custom-fields-into-your-content-type

import import – yml configuration can not be imported

I tried to import the yml configuration from the user interface (configuration synchronization) and Drush. However, the following errors are displayed:

I use the bootstrap theme 8.x-3.17.

Get errors in the surface:

The configuration can not be imported because the validation failed for the following reasons:
The configuration block.block.admintheme_theme_breadcrumbs depends on the admintheme_theme theme, which will not be installed after the import.
The configuration block.block.admintheme_theme_messages depends on the admintheme_theme design, which is not installed after the import.

Get errors in the Drush:

Drupal  Core  Config  ConfigImporterException: Errors encountered while checking configuration synchronization.                   [error]
construction block.block.admintheme_theme_breadcrumbs depends on the admintheme_theme Subject not installed after import.
construction block.block.admintheme_theme_messages depends on the admintheme_theme Subject not installed after import. in the
Drupal  Core  Config  ConfigImporter-> validate () (line 737 of
/Users/punya/htdocs/project-bank/core/lib/Drupal/Core/Config/ConfigImporter.php).
The import failed for the following reasons:                                                                       [error]
construction block.block.admintheme_theme_breadcrumbs depends on the admintheme_theme Subject not installed after import.
construction block.block.admintheme_theme_messages depends on the admintheme_theme Subject not installed after import.

Any help would be appreciated.

Comment yml not updated after editing – Migration related

I've reviewed all the other posts on this topic here and tried all the suggested solutions to update my comment yml file when it appears in the GUI.

I have successfully edited and updated all other Yml files. The only one that is stubborn is the comment import yml.

If I put the & # 39; label & # 39; in yml, this will be displayed in the GUI, but nothing will be done under & # 39; process & # 39; updated, no matter what I do. I'm using config_devel, trying to uninstall and reinstall modules, suppress importing configurations, and on and on. If I see the sub-tab "Process" in the GUI, the change will not be considered.

I also tried to adjust the id and create a new group just for this yml file. Basically everything I could see that could cause it to get stuck with the old process information.

I looked around the database, but I can not tell now that this is being cached.

Anyone else meets this nonsense?

Add a default value for naming fields in the drupal 8 migration yml file

    to process:
uid: ONE
field_contractor_name: CONTACT
name: CONTACT
-
plugin: default_value
default_value: & # 39; full name & # 39;

I am using the migration source CSV module. I have a few records where NOT the & # 39; CONTACT & # 39; is set or is zero. My Drupal migration fails for this reason. I tried to use the default_value plugin that came with the kernel. However, I get the following error:

    A colon can not be used in an unlisted mapping value on line 42 (near "default_value: full")
Surname").

How do I get a default value that is added to the name field if there is no value in the record?