Posts by viniciusxyz • 497 points
19 posts
-
0
votes1
answer75
viewsA: How to pass a parameter from one Annotation to another?
In this case my error was very simple, I should not try to get the values in the Annotations after all are interfaces and yes in the implementation.
-
0
votes1
answer75
viewsQ: How to pass a parameter from one Annotation to another?
How can I replace the value of @ConditionalOnExpression by the value passed in the SecurityConfig? Current code: @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) @EnableWebSecurity…
-
0
votes1
answer140
viewsQ: Transactions between queue and database
People like you handle transactions between queues and databases ? I have a scenario where I must debit (Withdraw money from account) from a customer account and send a message in the queue, but if…
-
4
votes1
answer3026
viewsQ: what is a service and what is its difference to a controller?
I have read many articles and seen many lessons on Java and lately I come across a lot with the concept of services and controllers, I have the clarity of the role of the Controller within an MVC…
-
0
votes1
answer63
viewsQ: How do I modify a local scope variable within a function?
Basically I want the function below to return a Boolean so I know if the transaction has occurred successfully or not : public persistirPagamento = async (agencia: string, banco: string, conta:…
-
6
votes1
answer90
viewsQ: How do I know my function is breaking SOLID POO?
I left a function below that will be the subject of the question, basically I would like to know if this function breaks any principle of SOLID/Clean Code by itself ? This doubt arose because…
-
1
votes1
answer317
viewsA: Upload images "on demand"
Good Otávio after thinking of mirabolosas solutions with Ajax both with back-end and with front, I began to think "this problem is not current will not already solved ?" and the answer was yes,…
-
1
votes1
answer95
viewsA: Developing Apis with Laravel or Micro Frameworks?
Particularly I like much more the idea of using micro-frameworks, I see no reason to use such a large and complex framework that somehow causes extra weight and more complexity in my applications…
-
-1
votes2
answers680
viewsA: Root user without permission, even with password set
Just to leave registered in case of password loss we can follow the steps below to be able to reset: Open and edit /etc/my.cnf Add skip-grant-tables below [mysqld] Restart Mysql You should be able…
mysqlanswered viniciusxyz 497 -
3
votes2
answers156
viewsA: How to "fix" an exception?
To solve your problem just use an Infinite Loop and allow your stop with the Return only when the actions you wish to happen, if there is an exception it will give a Continue and return to the…
javaanswered viniciusxyz 497 -
1
votes2
answers46
viewsA: Create a Div for each request result
@Júlio Henrique great answer only that in the section below we must make a slight change to work as expected // Aqui eu desejo criar um laço que crie uma janela de post para cada "resultado"…
-
0
votes1
answer63
viewsA: Promise Javascript wixsite
Good night buddy, Every promise needs to be resolved before Then can be triggered, in case only the resolve() in your code to indicate that the promise was fulfilled and then follow the other steps.…
-
0
votes2
answers87
viewsA: Updating OS packages from a Database container
Exact volumes are the best way to work with sensitive information, but note that if Zabbix components are run within a cluster you need networked volumes (NFS) because containers may not be…
-
1
votes1
answer94
viewsA: Mongodb in Azure
The Customer, Product and Order case are not documents, much less databases they are collections, the way you’re doing it is right (if you’re actually creating them as collections) the only problem…
-
2
votes1
answer99
viewsA: Program with problem to compile
Simply add a new READ at the end to wait for a key to be pressed before closing the code.
-
1
votes1
answer1168
viewsA: insert background image in mvc application
What’s up, my friend? In MVC we usually use a folder called Assets with CSS, JAVASCRIPT and IMAGES subdirectories to organize the items that make up our VIEW, since what you want is to add a…
-
1
votes1
answer730
viewsA: Pass object by Ajax
Opa friend all right ? Do the following: //In the medical class creates a method that transforms the Object into Json class Medico { public $nome; public function JsonRetorno() { return…
-
2
votes1
answer400
viewsA: if (isset($_POST['send'])) does not work with Ajax
You are searching for the "Submit" Index in the Global POST array, but this Index has not been defined at any time, this is in your Html as the name of one of the fields in your form ? Make an Isset…
-
1
votes1
answer384
viewsQ: How to select multiple checkboxes from Array ?
In my HTML you have the following line: <label class="turnoCurso pretoClaro" id="3"> Vespertino, Noturno </label> I need to turn the turns that are brought from the database into an…