I overrode the method in the SpringWebConfig and I want to give all pages of application only for admins. When I try to open page http://localhost:8080/api/v1/skills/ without any authorization I have a correct result instead of 403. Maybe I’m wrong with my config? Full project https://github.com/Wismut/crud_developers Answer Add the following class inside config package
DialogFlow with Android
I’m making an app with Android Studio (Java) and Dialogflow V2. I want to speak with the app and the message I said goes to Dialogflow and it answers me. The thing is that all I can find is that the user types the message and it is sent to Dialogflow. Does someone know how to do it? How to
Regex to match any number unless it is part of a specific string
Sorry if this is a dupe, I did search but couldn’t seem to find something that matched my query. I have a replacer function in java that runs multiple regexes to find and replace specific strings. One of them is looking at numbers, and if it finds a number it adds space around it, for example; test123 > test 123
Jooq Java CTE wrong render
I have CTE that is been creating from DSL.values: Then i am trying use it to get needed values from DB But i have only the next error I suppose it happens because of (select * from (values(cast(? as varchar)) How to fix it? Other methods without cte work fine. Answer The problem was there: “Id” is needed to be
How to get a content of config file for some OSGI Bundle
I have a following structure: — bundles —- nicebundle —— src ——– … ——– nicebundle.config ———- NiceConfig.java ——– … —- mybundle —— … —- another bundles… -…
Thymeleaf LD+JSON output quote escaped
I am generating LD+JSON string on server and I need to output it on client using Thyemeleaf. Generated JSON looks like this on server: As you can see the text is properly formatted on server. I render it on client like this: But the output in HTML looks like this: As you can see <a href is not properly escaped.
View binding with include layout not working
I want to use view binding to bind the view in include layout. I had given the included layout with an id ‘topBar’ but still failed to access the views inside of it. And I try to use Android studio auto-fix to create a local variable to see its type. It shows type “android.widget . a” I am using Android
Convert response to JSON/String and Write to a File
I’m new on java and node, so after 2 days trying to do this… i wrote this question. I’m using a git (https://github.com/gigobyte/HLTV) and trying to make files with the responses i get from this api, but all i got so far is to write the results in the console. Is there any way to convert it directry and write
JOOQ – inline Converter not being applied
In my build.gradle I use a converter in my forcedTypes. This works fine where i need it. However, I am trying to convert a comma separated string into a list of enums for a specificuse case: This throws an exception This is the model I am fetching into: Am I missing something? UPDATE: I am able to convert inline using
How can I create a notification channel for Android API level < 26 (before Android Oreo)? [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question I am currently working with an Android service: https://developer.android.com/guide/components/services I am creating a service that has to be a foreground service. But looking at the